WordPress loop: Show only a Custom Post Type Taxononmy TERM

I found the solution by myself, I leave it here in case someone is interested: <?php $args = array( ‘post_type’ => ‘agrupados’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘pedidos’, ‘field’ => ‘slug’, ‘terms’ => ‘ferrol’, ), ),); $the_query_slide = new WP_Query( $args ); if ( $the_query_slide->have_posts() ) {while ( $the_query_slide->have_posts() ) {$the_query_slide->the_post();?> <?php /* variables … Read more

Show post number in widget loop

It’s not clearly stated in your question, but I guess, you added exactly this code to the widget file: <?php echo $wp_query->current_post +1; ?> Am I right? If so, then it couldn’t work, because this code takes the counter from global $wp_query object, but… This widget doesn’t use global $wp_query and uses custom WP_Query instance. … Read more