I have a custom post type that have many taxonomies. In the front end, a user can assign a 'category' (term_meta) value to the taxonomy - hardware or software.
I wanted to be able to count how many term_meta posts there were.
$base_array = array( 'posts_per_page' => -1, 'fields' => 'ids', 'post_type' => 'cpt', 'post_status' => array('publish'), 'date_query' => array( 'before' => 'next Saturday', 'after' => 'last Monday' ) ); $base = get_posts($base_array); echo count($base);
This will give me the total count of posts in the week. But I want to count the posts that have the taxonomy with the term_meta 'hardware' or 'software'.
Is that possible?