• Resolved l30n4rd

    (@l30n4rd)


    I’m trying to make a slider of Posts content. I’ve added WP post shortcode to the slides content area. I have checked the “Allow Shortcodes” option box. But the slides when viewed in a page only show the shortcode text. I use the Classic Editor. Here is one of the shortcodes I’m adding.

    [display-posts id="182" include_date="true" date_format="F j, Y" image_size="medium" include_date="true" include_excerpt="true" post_type="post" category="news"]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author simonpedge

    (@simonpedge)

    This shortcode seems to work for me.

    I tried inserting this shortcode into a test SA slider:
    See: https://i.imgur.com/PUBCQ6s.png
    [display-posts id=”1″ include_date=”true” date_format=”F j, Y” image_size=”medium” include_date=”true” include_excerpt=”true” post_type=”post” category=”Uncategorised”]
    (this post id ‘1’ is my ‘Hello World’ post that comes with a WP installation)

    And This is what I see on the front-end page:
    https://i.imgur.com/b44gVuJ.png

    This shortcode does use the ‘Display Posts’ plugin – do you have this plugin installed:
    https://ww.wp.xz.cn/plugins/display-posts-shortcode/

    Also check the shortcode parameters – e.g. is the category correct.

    Thread Starter l30n4rd

    (@l30n4rd)

    Thank you. It was the Display Posts plugin.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Shortcode as content not working’ is closed to new replies.