[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
Wed Oct 30 21:25:22 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 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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61859#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list