Support » Plugins and Hacks » Hacks » Sticky Posts and Regular Posts

  • 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

Viewing 1 replies (of 1 total)
  • 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

Viewing 1 replies (of 1 total)
  • The topic ‘Sticky Posts and Regular Posts’ is closed to new replies.