[wp-trac] [WordPress Trac] #27193: tax_query returns only partial results

WordPress Trac noreply at wordpress.org
Mon Mar 31 09:14:48 UTC 2014


#27193: tax_query returns only partial results
--------------------------+----------------------
 Reporter:  p_enrique     |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Query         |     Version:  trunk
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by johnbillion):

 * keywords:  2nd-opinion =>
 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 The problem here is being caused by your call to `$query->get_posts()`.
 This method is called internally when the `WP_Query` class is instantiated
 and should not be called manually. I've tested your code and cannot
 reproduce the problem once that line is removed.

 See the [http://codex.wordpress.org/Class_Reference/WP_Query#Usage Usage
 section of WP_Query] for the correct usage. Note also that you can use the
 `$query->posts` property if you want to see the list of posts that are
 present in the query.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27193#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list