Show a 404 error page if Public query variable’s value doesn’t exist?
Even if you make it works, you are running 3 different queries (get_term fire a query) in addition to the main query for any request, I don’t think is the right way to do what you want. I guess that when you send an invalid tag / category / custom tax you don’t find any … Read more