WP Query – if there are no posts with certain tag query other ones
WP_Query doesn’t have a fallback system in it. It just executes the query with the given parameters. One option is just to check, if the first query has any posts and if not, then run another query with different parameters. Another way is to conditionally build up the parameters. So first get the tag term … Read more