title: Widget Logic WordPress Exclude a Parent Category and it's Children?
body: <p>I am trying to only show a single parent category and it's children on a specific category page.</p>
  
  <p>How do I exclude all other parent categories and their children?</p>
  
  <p>I am using the plugin Widget Logic. I have gone through the usage and can't quite figure it out.</p>
  
  <p>I have it setup to show just the widget for that category on that categories page, but it won't exclude the categories that aren't associated with that categories page.</p>
  
  <p>I also tried using a custom bit of code accessed from my " functions.php " but no go.</p>
  
  <p>Help appreciated.</p>
  
  <p><strong>* Here is the Widget Logic I have in place: *</strong></p>
  
  <pre><code>is_category(6) || (is_single() &amp;&amp; in_category(6))
  </code></pre>
  
  <p><strong>* Here's the visual result thus far: *</strong></p>
  
  <blockquote>
    <p><strong>RECENT INSPIRATION POSTS</strong> -- Widget</p>
    
    <p>Test for Inspiration July 20th, 2012</p>
    
    <p>Test Inspiration May 24th, 2012</p>
    
    <p><strong>INSPIRATION CATEGORIES</strong> -- Widget</p>
    
    <p><em>Inspiration</em></p>
    
    <p>-- inspiration child</p>
    
    <p><em>News</em> (this is a parent category that should not be listed???)</p>
    
    <p>-- news child (this is a child category that should not be listed???)</p>
  </blockquote>