title: Getting Post Information Outside the Wordpress Loop
body: <p>I know there are functions to like is_single() that will return data about the page, but I'm looking for a way to get the following information outside of the loop:</p>
  
  <p>The category of the single post.</p>
  
  <p>AND</p>
  
  <p>The title of the single post.</p>
  
  <p>All I would really need is the post ID in question and I could get all the other information. I've looked through the functions reference in the codex, but I haven't found anything. Is this impossible because the script doesn't even get that information 'til the Loop runs?</p>
  
  <p>(I would need this information in both the header and footer, so before and after the PHP script for the loop, if that is a problem.)</p>
  
  <p>Hopefully someone can offer some insight.</p>
  
  <p>EDIT: To clarify: I want the information to be from the post that is loaded in the loop on the "single" page. (AKA the post they are viewing.) So how would I get this ID in the first place? Basically, when viewing a post, I want to get its category or title, but not while the loop is going.</p>