title: Getting Search Engines To Display Desired Description
body: <p>I recently tried searching my site with Google, and only one of the pages displayed the <code>&lt;meta name="description" content=...&gt;</code> correctly.</p>
  
  <p>the meta tags are added with php via the php include function</p>
  
  <pre><code>&lt;head&gt;
      &lt;?php 
          $description="stuff";
          $keywords="stuff";
          include ("metaTags.php"); 
      ?&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>metaTags.php:</p>
  
  <pre><code>&lt;?php 
      global $keywords, $description;
      echo '&lt;meta name="description" content="'.$description.'" &gt;'; 
      echo '&lt;meta name="keywords" content="'.$keywords.'" &gt;';
  ?&gt;
  </code></pre>
  
  <p>All the pages have use the same code. I thought it may have taken a cache copy, but the new pages have the same problem. The one that doesn't has nothing special about it, except it is the most viewed.</p>
  
  <p>What is displayed instead the description is the first few lines of the webpages</p>
  
  <p>It displays correctly with view source.</p>