WordPress.org

Ready to get started?Download WordPress

Forums

Sticky Posts and Regular Posts (2 posts)

  1. amahdee
    Member
    Posted 3 years ago #

    Hi there,
    The issue is this:

    Front Page displays 15 Posts
    Post Per Page - 15 Posts
    I added 15 Sticky Posts
    But now on the front page are showing 30 posts, and I want 15 and the second page 15 and so on!
    How to do this?

    Thanks

  2. jeFFF
    Member
    Posted 3 years ago #

    Hello,

    This behavior is normal as sticky posts are not considered as regular posts.

    There is 2 ways to do what you want, create a new category entitled frontpage and display only this one on the front page using the query_posts function.

    Or modify the loop on the front page (index.php), get all stickies using :
    get_option('sticky_posts');
    and pass the data in a query_posts function :
    query_posts(array('post__in'=>get_option('sticky_posts')));

    Hope this help ;)

    cheers
    jeFFF

Topic Closed

This topic has been closed to new replies.

About this Topic