title: get_post() with a specific class only - Wordpress
body: <p>I am using Wordpress as the CMS for a site the I'm building.</p>
  
  <p>the page template:</p>
  
  <pre><code>    &lt;?php get_header(); ?&gt;
  
      &lt;!-- Class here --&gt;
  
      &lt;div id="wrap"&gt;
          &lt;div id="content" class="column"&gt;
              &lt;?php if( have_posts() ): while( have_posts() ): the_post(); ?&gt;
  
              &lt;div class="post"&gt;
  
              &lt;?php the_content(); ?&gt;
  
              &lt;/div&gt;
  
              &lt;?php endwhile; endif; ?&gt;
          &lt;/div&gt;
  
          &lt;div id="sidebar" class="column"&gt;
              &lt;?php get_sidebar(); ?&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
  &lt;/div&gt;
  
  &lt;/div&gt;
  &amp;nbsp;
  &lt;div&gt;
  
  &lt;?php get_footer(); ?&gt;
  </code></pre>
  
  <p>I need a div with the class of "<code>theslide</code>" to be called before the <code>#wrap (Class here)</code> and not to be call again by the php that follows.</p>
  
  <p>Can one do something along the lines of "<code>get_post if class=theslide</code>" ?</p>
  
  <p>Thank you.</p>