---
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-04-14
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 includes a Taxonomy Listing block that allows users to exclude categories by ID from a category list.
- Users can add multiple post IDs in the Exclude Terms ID field to hide specific categories from the list.
- To find a category ID, users can hover over the category in the Dashboard, where the ID appears in the edit URL.

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: What should I do if the category is still showing after excluding it by ID?**
A: If the category still appears, double-check the category ID you entered in the Exclude Terms ID field. Ensure that you've separated multiple IDs with commas if excluding more than one. Also, confirm that the Taxonomy Listing block is correctly configured and that you've saved your changes. Sometimes, caching plugins can also cause delays in updates, so clearing your cache might help.

**Q: What is the best practice for finding category IDs to exclude?**
A: The best practice for finding category IDs is to navigate to Posts &gt; Categories in your WordPress dashboard. Hover over the desired category, and the category edit URL will appear at the bottom of your browser, showing the ID after 'category&amp;tag_ID='. This method ensures you are using the correct ID for exclusions.

**Q: Does the Taxonomy Listing block require any additional plugins to work?**
A: The Taxonomy Listing block is part of the Nexter Blocks and requires it to be installed and activated to function properly. It is designed to work with Gutenberg as the primary builder, so ensure you have that set up. This integration allows for a seamless experience when managing your category listings.
