[wp-trac] [WordPress Trac] #13365: WP_Query, author_name, and sticky posts

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 3 21:54:28 UTC 2011


#13365: WP_Query, author_name, and sticky posts
-------------------------------+------------------------------
 Reporter:  eryanv             |       Owner:  ryan
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Query              |     Version:  2.9.2
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by pavelevap):

 * cc: pavelevap@… (added)


Comment:

 Today I also came into this problem. On our website there are several
 sticky posts.

 I tried to do custom loop (posts on page) with WP_Query(). But there were
 not only posts related to arguments, but also all sticky posts. I found
 caller_get_posts and set it true and everything was OK. But it is not very
 user-friendly solution, for all my loops I have to add this parameter...
 Maybe ignoring sticky posts for custom loops? But on the other side I
 understand its current behaviour... But for many users it is not very
 clear on the first look...

 Maybe related: http://core.trac.wordpress.org/ticket/14825

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13365#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list