title: Exclude category from list - Wordpress
body: <p>I'm trying to exclude a category from displaying in the following list:</p>
  
  <pre><code>&lt;?php
      $categories = get_categories( 'orderby=id&amp;exclude=1,'. getOption('promo-categorie', false) );
      foreach( $categories as $category ) :
          $active = ( !is_home() &amp;&amp; get_query_var( 'cat' ) == $category-&gt;term_id )? ' style="color: ' . getOption($category-&gt;category_nicename . '-color', false) . '"' : '';
          $catLink = ( get_query_var( 'cat' ) == $category-&gt;term_id ) ? get_bloginfo( 'wpurl' ) : get_category_link( $category-&gt;term_id );
  ?&gt;
    &lt;a class="nav-links" href="&lt;?php echo ( get_query_var( 'sort' ) == 'list' )? add_query_arg( array( 'sort' =&gt; 'list' ), $catLink ) : $catLink ?&gt;" &lt;?php echo $active; ?&gt;&gt;&lt;?php echo $category-&gt;name; ?&gt;&lt;/a&gt;
  &lt;?php
      endforeach;
  ?&gt;
  </code></pre>
  
  <p>I'm a total newb with PHP, but from what I can tell "promo-categorie" is being excluded. In addition, I would like to exclude another category.</p>
  
  <p>Any help would be appreciated.</p>