Adding a "sticky" qualifier to query_posts

  1. nathanrice

    I am loving the new "sticky" feature in WordPress 2.7 trunk, but as a theme developer, it would be nice if there was a way to use query_posts to pull only those posts that have been marked "sticky".

    I haven't heard of anyone doing this yet, but if this could make it into core by the time 2.7 launches, you're gonna make a lot of theme and plugin developers very happy.


    Posted: 7 years ago #
  2. Justin Tadlock
    WordPress God


    This is definitely a good idea, Nathan.

    I was wondering how I would integrate current theme implementations of this type of feature with the new sticky functionality.

    query_posts() with a sticky parameter (include/exclude) would be nice.

    Posted: 7 years ago #
  3. nathanrice

    Turns out, there is a workaround that actually lets you do this ...


    Thanks to Otto!

    Posted: 7 years ago #
  4. Alex Dunae

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    1 Vote
  • Status

    This idea has been implemented