[wp-trac] [WordPress Trac] #61859: meta_value_num order calse in WP_Term_Query cannot work as meta_query is evaluated after setting up the order

WordPress Trac noreply at wordpress.org
Sat Nov 9 11:06:55 UTC 2024


#61859: meta_value_num order calse in WP_Term_Query cannot work as meta_query is
evaluated after setting up the order
-------------------------------+------------------------------
 Reporter:  gaelwanaka         |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Taxonomy           |     Version:  6.6.1
 Severity:  major              |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by ahrefsdr):

 Replying to [comment:1 pbaerne]:
 > You must define a meta_query in your WP_Term_Query even if you're not
 filtering by any meta fields. The meta_query tells WordPress to consider
 metadata for both filtering and ordering.
  WP_Term_Query will not work here

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


More information about the wp-trac mailing list