'post', 'posts_per_page' => absint( $num ), 'orderby' => $orderby, 'ignore_sticky_posts' => 1 ); // Limit to tag based on user selected tag. if ( ! empty( $tag ) ) { $args['tag_id'] = $tag; } // Allow dev to filter the post arguments. $args = apply_filters( 'beginner_featured_args', $args ); // The post query. $featured = new WP_Query( $args ); if ( $featured->have_posts() ) : $i = 0; ?>

have_posts() ) : $featured->the_post(); ?>