[insert_php] global $wp_query; if ($wp_query->query_vars[‘tag’]) { echo ‘‘; } [/insert_php]