I deleted quite a bit of content recently and have incoming links to that content. I can't do anything other than point to where the content now is, but I can't seem to find the exact file/query that selects the post from the database. What I want to do is check the recordcount and if it is 0, spit out a text blurb, link, redirect, etc. so that the user goes to the new content. Anyone know? It's Wordpress 2.1.