[wp-trac] [WordPress Trac] #25892: tax_query docs

WordPress Trac noreply at wordpress.org
Sat Nov 9 13:05:43 UTC 2013


#25892: tax_query docs
--------------------------------+-----------------------------
 Reporter:  afercia             |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  WordPress.org site  |    Version:
 Severity:  normal              |   Keywords:
--------------------------------+-----------------------------
 hi, not 100% sure but on tax_query documentation
 http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters

 Taxonomy Parameters > tax_query > field (string) - Select taxonomy term by
 ('id' or 'slug')

 shouldn't be by ('term_id' or 'slug')?

 All references I see in the core use term_id.
 In a custom tax_query if I use 'id' I get 1 additional query to get... the
 term_id :-) If I directly use 'term_id' it saves 1 query.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25892>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list