Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • ravenous-monster
    Participant

    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″ ]

    Hi,

    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,
    Aakash

    ravenous-monster
    Participant

    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.

    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" ]

    ravenous-monster
    Participant

    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.

    Hi,

    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,
    Aakash

    ravenous-monster
    Participant

    Ah ha! Ok that makes sense.

    Is there any way that I can create it in your plug-in?

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Subscribe for updates

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter