October 11, 2020 at 3:19 pm #8161
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 #8163
AakashOctober 11, 2020 at 5:29 pm #8164
The 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 #8165
This 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 #8166
Thanks 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 #8168
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.
AakashOctober 13, 2020 at 4:52 pm #8172
Ah ha! Ok that makes sense.
Is there any way that I can create it in your plug-in?
- You must be logged in to reply to this topic.