Tag Info

Hot answers tagged

2

The issue is that there is no taxonomy meta data like there is for posts. ACF taxonomy data is stored serialized in the options table, so it can't be queried like post meta can. You have to load all terms and check the data associated to each one individually. Perhaps a better solution is to create Romance, Action, & Drama parent terms, and make your ...


2

Yes but not in an easy simple way via the order parameters. I would suggest that you: Maintain a 3rd post meta Whenever you change the first or second, add them together and set the 3rd meta to contain the sum of the new values Order by the 3rd value The alternative is to write your own SQL query from scratch and all the horrors and disadvantages that ...


1

Yep. You can add a meta_query parameter to methods that query posts, such as WP_Query. This one below gets a custom post type between two dates (which are custom fields created by 'advanced custom fields' plugin) and sorts on one of these dates: $args = array( 'post_type' => 'event', 'posts_per_page' => '-1', 'post_status' => array( ...



Only top voted, non community-wiki answers of a minimum length are eligible