WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jontsef
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/display-posts-shortcode/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

    Thank you

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic