How to add another page ID in a PHP function - newbie asking?
<p>I need some help to see where I am going wrong. </p>

<p>I am trying to add a page ID to this original function:</p>

<pre><code>&lt;?php if( $post-&gt;ID != '91' )
    {
        get_sidebar();
    } ?&gt;
&gt;
</code></pre>

<p>to also exclude the ID 1267. 
I am trying this, with no success. </p>

<pre><code>&lt;?php
    $pageIDs_to_exclude=array("91","1267");

    if( $post-&gt;ID != $pageIDs_to_exclude )
    {
        get_sidebar();
    }
?&gt;
</code></pre>

<p>Surely there must be a better way of doing this?  Or what am I missing?
Thnaks for any help
/Anders</p>
