[wp-trac] [WordPress Trac] #40335: using 'pre_get_terms' is confusing when it comes to ordering by meta
WordPress Trac
noreply at wordpress.org
Sat Dec 9 19:19:10 UTC 2017
#40335: using 'pre_get_terms' is confusing when it comes to ordering by meta
--------------------------+------------------------------
Reporter: wujek_bogdan | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 4.7.3
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by wujek_bogdan):
Replying to [comment:2 johnh10]:
> I'm running into the same issue, and am unable to user `pre_get_terms`
to order the terms by `meta_value`. It does not work like `pre_get_posts`
at all.
Read the whole comment I wrote (or at least the last sentence ;)), at the
bottom I've posted a solution.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40335#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list