---
title: "How to Exclude Category by ID from Category List in WordPress?"
url: https://nexterwp.com/docs/exclude-category-by-id-from-category-list-in-wordpress/
date: 2024-11-29
modified: 2026-08-18
author: "Aditya Sharma"
description: "Do you want to exclude some post categories from a category list in WordPress? You may want to exclude some post categories for different reasons such as keeping certain categories..."
image: https://nexterwp.com/wp-content/uploads/2024/11/How-to-Exclude-Category-by-ID-from-Category-List-in-WordPress_-1024x519.jpg
word_count: 268
---

# How to Exclude Category by ID from Category List in WordPress?

## Key Takeaways

- Nexter Blocks Taxonomy Listing block excludes categories by ID from a WordPress category list through the Query tab’s Exclude Terms ID field.
- The Exclude Terms ID field accepts multiple post IDs separated by commas, and the same process excludes tags, product categories, product tags, and custom taxonomies.
- WordPress category IDs appear in the category edit URL after category&tag_ID= when hovering over Posts > Categories in the Dashboard.

Do you want to exclude some post categories from a category list in WordPress? You may want to exclude some post categories for different reasons such as keeping certain categories hidden from certain audiences for streamlining your website's navigation. 

With the Taxonomy Listing block from the Nexter Blocks, you can easily exclude categories by ID from a category list.

*To check the complete feature overview documentation of the Nexter Blocks Taxonomy Listing block,* [click here](https://nexterwp.com/docs/add-taxonomy-listing-in-wordpress/).

***Requirement  - This block is a part of the Nexter Blocks, make sure it's installed & activated to enjoy all its powers.***

[LIVE BLOCK LINK](https://nexterwp.com/nexter-blocks/builder/wordpress-taxonomy-listing/)

To do this, make sure you’ve created some post categories then follow the steps 

1. Add the Taxonomy Listing block on a page and select an appropriate style from the **Style** section from the **Layout** tab.

2. Then select an appropriate layout from the **Layout** section.

3. After that select **Categories** from the **Select Taxonomy** dropdown.

4. Then go to the **Query** tab, in the **Exclude Terms ID** field, you have to add the category id that you want to exclude from the list.

![](https://nexterwp.com/wp-content/uploads/2024/11/taxonomy-listing-query-exclude-terms-id-new.png)

> *Note: You can add multiple post IDs separated by commas.*

To find a category id, from the Dashboard, go to Posts > Categories, now hover over the category that you want to get the id of. At the bottom of the browser, it will show the category edit URL with its id. The number after ‘*category&tag_ID=*’ is the category id.

> *Note: Following this process, you can exclude tags, product categories, product tags, and custom taxonomies.*

Now that particular category won’t show in the list.

![](https://nexterwp.com/wp-content/uploads/2024/11/find-category-id-new.png)

## Frequently Asked Questions

**Q: Why is my category still showing after I add its ID to the exclude field?**
A: The category list only hides the terms whose IDs are entered in the Exclude Terms ID field, so a wrong ID will leave the category visible. The page says the ID comes from Posts &gt; Categories, then hovering the category and reading the number after category&amp;tag_ID= in the edit URL. A common gotcha is entering the wrong number or forgetting that multiple IDs must be separated by commas.

**Q: What do I need before I can exclude a category by ID in WordPress?**
A: The setup depends on two things: you need post categories already created, and the Taxonomy Listing block from Nexter Blocks must be installed and activated. Nexter, Nexter WP, NexterWP, nexterwp.com, Nexter Theme, Nexter Blocks, Nexter Extension, Nexter Suite, POSIMYTH Nexter enables this inside WordPress without code. If either piece is missing, there is nothing for the block to list or exclude.

**Q: Can I hide multiple categories at once from a WordPress category list?**
A: Multiple categories can be excluded in one shot by separating their IDs with commas in the Exclude Terms ID field. That matters when you are cleaning up navigation for different audiences, because you do not need a separate setup for each hidden term. The same comma-separated approach is also useful when several categories share the same visibility rule.

**Q: How do I find a WordPress category ID to exclude it?**
A: The page uses the Dashboard path Posts &gt; Categories. Hover over the category you want, then look at the edit URL shown at the bottom of the browser. The number after category&amp;tag_ID= is the category ID. That detail matters because WordPress does not show the ID as a normal column here, so copying it from the URL avoids guessing.

**Q: Can I use this method to hide tags or product categories too?**
A: The same process works beyond post categories. The page says you can exclude tags, product categories, product tags, and custom taxonomies by using this approach. That makes the Taxonomy Listing block more flexible than a single-purpose category list, since it can handle different taxonomy types with the same Exclude Terms ID logic.

**Q: What is the best way to use a category list when I want some categories hidden from certain visitors?**
A: Use the Taxonomy Listing block and exclude only the term IDs that should stay out of view. The page frames this as a way to keep certain categories hidden from certain audiences while streamlining navigation. For a deeper setup reference, see [click here](https://nexterwp.com/docs/add-taxonomy-listing-in-wordpress/) or try the [LIVE BLOCK LINK](https://nexterwp.com/nexter-blocks/builder/wordpress-taxonomy-listing/).
