I want to display posts by categories. In my categories, I just want to display the posts that have the term meta between 100 and 200.
How can I do that properly?
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
This seems a little inconvenient since there are two hops from posts to terms to term meta.
WP_Query cannot operate with term meta since it doesn't directly apply to posts.
Without knowing more context of your situation and term counts involved I would guess:
pre_get_poststo modify term archive query by limiting posts returned to having valid term assigned with taxonomy query.