I am trying to get WordPress to display a count of a specific post category. I can get a count with my current code, but I would like to limit the count to only those posts created during the current calendar year. My current code is:
<?php $args = array( 'cat' => 18, ); $the_query = new WP_Query( $args ); echo $the_query->found_posts; ?>How can I add " = Current Year" as an argument in the $args array? Thanks.