Display Posts Shortcode
[resolved] Display just one post (3 posts)

  1. jontsef
    Posted 3 years ago #

    Sometimes the shortcode displays 2 posts instead of 1.
    For example with this: [display-posts posts_per_page="1"]

    It seems to work when I pick a category without sticky posts, but if not then it includes the sticky post.

    Any ideas?

    Thank you for the great plugin.


  2. Bill Erickson
    Plugin Author

    Posted 3 years ago #

    Sticky posts dont' follow the pagination rules. To disable sticky posts, update your shortcode to this:

    [display-posts posts_per_page="1" ignore_sticky_posts="true"]

  3. jontsef
    Posted 3 years ago #

    Thank you

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Display Posts Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic