Here is the existing code that I need to modify:
$not_in = array_merge ( $not_in, get_option( 'sticky_posts' ) );
$args = array();
$tax = 'category';
if( '0' != $instance['category'] ) {
$args = array(
array(
'taxonomy' => $tax,
'terms' => array( $instance['category'] ),
'field' => 'term_id',
'operator' => 'IN', ),
),
);
}
I need to add the following array to it to restrict populating the category list to those categories having a count greater than 10. How would I do that?
array(
'taxonomy' => 'category',
'field' => 'count',
'operator' => '> 10', )
Thanks in advance!