title: custom pages give 404 error title in Wordpress
body: <p>I'm running a site powered by WordPress with extra pages...
  To integrate these pages with the WordPress theme I use this code:</p>
  
  <pre><code>&lt;?php
  $blog_longd='Title'; // page title
  define('WP_USE_THEMES', false);
  require('wp-blog-header.php');
  get_header();
  ?&gt;
  
  html code
  
  &lt;?php
  get_sidebar();
  get_footer();
  ?&gt;
  </code></pre>
  
  <p>This works fine, however page title shows always 404 Error Page (not "Title").</p>
  
  <p>It seems that $wp-query->is_404 is always set to true. I tried overriding this value but it doesn't seem to work. I tried fixing it by putting header status 200 above function get_header()..also it doesn't work.</p>
  
  <p>Any suggestions?
  Thanks</p>