Query Posts
Post Order Confusion (2 posts)

  1. Mark Root-Wiley
    Posted 5 years ago #

    I'm running WP 3.1.1 with Query Posts 0.3.2. I have spent hours trying to figure out what's going on and need a fresh pair of eyes.

    I have a query posts widget with the following [relevant] settings:
    Order: descending
    Orderby: Date
    post_status: published
    post_type: post
    category: 15
    posts_per_page: 1
    offset: 1
    Disable sticky posts: unchecked
    Reset Query: unchecked

    I want this widget to display the second post ordered by date but also accounting for stickiness. These settings somehow don't seem to account for stickiness. When the second-most-recent post is sticky and the most-recent post is not, the widget shows the second-most-recent sticky post (not the expected behavior). When no posts are sticky, this works as expected.

    I've tried different combinations of reset query turned on and off but haven't gotten anywhere. This is one of three query posts widgets on the page as well as a custom, templated query_posts query (that does use reset_query after it's called).

    Any help or ideas would be appreciated.


  2. CatherineWinters
    Posted 4 years ago #

    I'm seeing this too, with WP 3.3.1 and Query Posts 0.3.2. I too have three query posts widgets on the page. (No custom, templated query_posts query, mind you.)

    I suspect something is not actually getting reset correctly?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Query Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic