Hi, RobM! Thanks for replying!
I have made some tests and I think I can’t use that.
It would need some work around because I’m trying to query Categories based in Custom Fields. Then in my loop I expect to work with the Taxonomy object, not the Post object. My current solution is:
$args = array(
'meta_query' => array(
'key' => 'crb_category_sticky',
'value' => 'yes',
'compare' => '='
'taxonomy' => 'category',
$terms = get_terms( $args );
foreach( $terms as $term ) :
carbon_get_term_meta( $term->term_id, 'crb_category_subtitle' );
I believe your proposed solution would work perfectly if there is a version with WP_Term_Query (or get_terms) instead of WP_Query.