Title: spacefall's Replies | WordPress.org

---

# spacefall

  [  ](https://wordpress.org/support/users/spacefall/)

 *   [Profile](https://wordpress.org/support/users/spacefall/)
 *   [Topics Started](https://wordpress.org/support/users/spacefall/topics/)
 *   [Replies Created](https://wordpress.org/support/users/spacefall/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/spacefall/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/spacefall/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/spacefall/engagements/)
 *   [Favorites](https://wordpress.org/support/users/spacefall/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Parent Categories](https://wordpress.org/support/topic/parent-categories/)
 *  Thread Starter [spacefall](https://wordpress.org/support/users/spacefall/)
 * (@spacefall)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/parent-categories/#post-64563)
 * Sorry, I was really unclear in my original post. It’s only menu items in the 
   category list that I’m hiding, so child categories are automatically hidden with
   their parents. That bit’s fine. My problem is in doing this when either the category
   or parent category matches a certain value. Something like, the following, but
   able to detect parent category.
    <?php if ($cat == “3”) { wp_list_cats(‘exclude
   =2’);} else { wp_list_cats;} ?>

Viewing 1 replies (of 1 total)