How to count user unlocked posts?
-
Hi!
How to count user unlocked posts in a specific custom taxonomy term?I know how to get count of all post in a specific custom taxonomy term:
$args = array( 'post_type' => 'books', 'tax_query' => array( array ( 'taxonomy' => 'books_cat', 'field' => 'slug', 'terms' => 'adventure', ) ), ); $the_query = new WP_Query( $args ); $the_query->found_posts;
But how to count only unlocked posts by the user in that taxonomy term?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to count user unlocked posts?’ is closed to new replies.