Title: seeane's Replies | WordPress.org

---

# seeane

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

 *   [Profile](https://wordpress.org/support/users/seeane/)
 *   [Topics Started](https://wordpress.org/support/users/seeane/topics/)
 *   [Replies Created](https://wordpress.org/support/users/seeane/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/seeane/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/seeane/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/seeane/engagements/)
 *   [Favorites](https://wordpress.org/support/users/seeane/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: [Only show post from specific category (by name), but not from subcategory](https://wordpress.org/support/topic/only-show-post-from-specific-category-by-name-but-not-from-subcategory/)
 *  Thread Starter [seeane](https://wordpress.org/support/users/seeane/)
 * (@seeane)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/only-show-post-from-specific-category-by-name-but-not-from-subcategory/#post-6158086)
 * Okay,
 * So I’ve found a workaround with category_ID, but I’ll keep looking for a way 
   with category_name.
 *     ```
       $cat_id_open = get_cat_ID('competition');
                    echo $cat_id_open;
                    $cat_id_closed = get_cat_ID('closed');
                    query_posts('cat='.$cat_id_open.',-'.$cat_id_closed);
       ```
   

Viewing 1 replies (of 1 total)