title: get wordpress post by post title
body: <p>i am using this code to show wordpress posts in an external website:</p>
  
  <pre><code>&lt;?php
  require('wp_blog/wp-blog-header.php');
  
      if($_GET["p"] &gt; '') { ?&gt;
  
      &lt;?php query_posts('p='.$_GET["p"].''); ?&gt;
      &lt;?php while (have_posts()) : the_post(); ?&gt;
          &lt;h4&gt;&lt;?php the_title(); ?&gt;&lt;/h4&gt;
          &lt;?php the_content(); ?&gt;
      &lt;?php endwhile; ?&gt;
      &lt;?php } else { ?&gt;
  
      &lt;?php
      $posts = get_posts('numberposts=10&amp;order=ASC&amp;orderby=post_title');
      foreach ($posts as $post) : setup_postdata( $post ); ?&gt;
          &lt;?php the_date(); echo "&lt;br /&gt;"; ?&gt;
          &lt;?php the_title(); ?&gt;    
          &lt;?php the_excerpt(); ?&gt; 
      &lt;?php endforeach; ?&gt;
  
      &lt;?php } ?&gt;
  </code></pre>
  
  <p>rather than selecting the post based on the ID, how can i make it select the post based on the post title?</p>