Wordpress help! Which file actually selects the post from the database?

Discussion in 'WordPress' started by mistergin, Mar 14, 2007.

  1. #1
    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.
     
    mistergin, Mar 14, 2007 IP