term_id; $qarr = array( 'posts_per_page' => $posts_number, 'cat' => $current_category, 'tag' => 'pinned', // this is the tag that it filters 'post__not_in' => array(get_the_ID()) ); $q = new WP_Query($qarr); if($q->have_posts()) : while ($q->have_posts()) : $q->the_post(); ?>
'' && get_option('aggregate_thumbnails_index') == 'on') { ?>