New answers tagged exclude
INDEX.php file is refined far after the pre_get_posts hook... so, you should define the $popular variable before that hook.
The easiest course of action would be to write manual excerpts instead of having the system generate them. Second, would be to wrap your "content that isn't an excerpt" in a shortcode. If you look at the wp_trim_excerpt() function, which generates excerpts from post content, one of the first thing it does is strip shortcodes. For example, if you had a ...
You need to use 'tag__not_in' and you need the ID of the Tag. Have a look into https://codex.wordpress.org/Function_Reference/get_term_by to retrieve the term object, where the ID is contained.
Use tag__not_in parameter. You have to use tag ID for this parameter $args = array( 'category_name' => $cat_name, 'tag' => $tag_name, 'post__not_in' => $sticky, 'tag__not_in' => array($tag_id_1, $tag_id_2) ); $my_query = new WP_Query( $args );
Top 50 recent answers are included