Hello.
Just wondering if anyone can help out with this...
i want to include a robots noindex meta tag for pages containing no posts.
e.g, if someone visits a tag archive, and the tag has been deleted, then i don't want it indexed by google, so i want to put a noindex tag at the top.
but i can't figure out how you can include it in the head, when the loop hasn't started yet.
i've been reading up, and i reckon the solution has probably got something to do with have_posts(), but i can't work out how to actually implement it.
if anyone has got some tips, that would be great.