title: WordPress Conditional Content by Multiple Post Types
body: <p>working on a highly complex WordPress theme that features many different <a href="http://justintadlock.com/archives/2010/04/29/custom-post-types-in-wordpress" rel="nofollow">custom post types</a>.  I was under the impression that the following code would check to see if the current post was of the type "philosopher" and then run the PHP conditional that follows it only if the post is in that type:</p>
  
  <pre><code>&lt;?php if (get_post_type() == 'philosopher') { ?&gt;
  </code></pre>
  
  <p>Unfortunately, my expectation was that to make the same item conditional for "philosopher", "text", and "original" my code should look like this:</p>
  
  <pre><code>&lt;?php if (get_post_type() == 'philosopher','text','original') { ?&gt;
  </code></pre>
  
  <p>But alas, I was wrong.  I did get the following code to work, but I'm wondering if there's a cleaner way to do this (or if I'm somehow missing something)</p>
  
  <pre><code>        &lt;?php if ( (get_post_type() == 'philosimply') || (get_post_type() == 'text') || (get_post_type() == 'original'))  { ?&gt;
  </code></pre>