-
AuthorPosts
-
October 11, 2020 at 3:19 pm #8161ravenous-monsterParticipant
I don’t know why but I cannot get the core WordPress shortcodes to work for some reason.
How do I create this so that I can use it on a page?
[display-posts category=”faq” order=”ASC” orderby=”name” image_size=”thumbnail” include_excerpt=”true” posts_per_page=”100″ ]
October 11, 2020 at 5:19 pm #8163Aakash ChakravarthyKeymasterHi,
With shortcoder you can create shortcodes for custom HTML,CSS and javascript. You can also use shortcode like you have above as the shortcode content. Just paste that shortcode in the shortcode content and then you can use
sc name="my-shortcode"]
Thanks,
AakashOctober 11, 2020 at 5:29 pm #8164ravenous-monsterParticipantThe problem is that the core WordPress code is not working when I use it on a page.
When I paste the code into a new Shortcoder code it still does not work.
I’m stumped as to why the core WordPress code is not working.
October 11, 2020 at 7:07 pm #8165Aakash ChakravarthyKeymasterThis shortcode is provided by I guess a plugin called “Display posts” – https://wordpress.org/plugins/display-posts-shortcode/
May be you can try checking it with that author. If the shortcode does not work normally then it may not work even when used inside shortcoder.
I can suggest that you can change the fancy double to normal quote like below.
[display-posts category="faq" order="ASC" orderby="name" image_size="thumbnail" include_excerpt="true" posts_per_page="100" ]
October 12, 2020 at 1:21 am #8166ravenous-monsterParticipantThanks for your reply.
No the double quotes are being generated by the website here not from my code.
No display-posts is part of the core WordPress codex: https://wordpress.com/support/display-posts-shortcode/
This should be working but it is not.
I tried your suggestion and it is still displaying the raw shortcodes parameter instead of the expected output. That means that something has been overwritten in the core WordPress code. I don’t mess with any of the PHP or other code on my site so it is something happening that is messing the WordPress installation.
Please help.
October 12, 2020 at 11:30 pm #8168Aakash ChakravarthyKeymasterHi,
It seems you are referring to WordPress.com doc which does not appyl to self hosted wordpress site.
Below are the only inbuilt shortcodes in self hosted wordpress.
https://codex.wordpress.org/Shortcode#Built-In_and_Additional_Shortcodes
Thanks,
AakashOctober 13, 2020 at 4:52 pm #8172ravenous-monsterParticipantAh ha! Ok that makes sense.
Is there any way that I can create it in your plug-in?
-
AuthorPosts
- You must be logged in to reply to this topic.