Nesting if statements to echo only one string based on what tag was filtered?
is_tag() returns whether the query is for an existing tag archive page. This isn’t what you want to use. Instead, use get_query_var(). get_query_var( ‘tag’ ) will look at the tag query variable in the URL. For instance, if your URL is https://example.com/?tag=this&other=that then using: get_query_var( ‘tag’ ) will return this get_query_var( ‘other’ ) with return … Read more