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.
Table of Contents

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.

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

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.

taxonomy listing query exclude terms id new

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.

find category id new

About the Author

Photo of Aditya Sharma CMO of NexterWP
CMO at POSIMYTH Innovations · NexterWP · 7 years experience

He has spent years in the WordPress ecosystem building, breaking, and optimizing sites until they actually perform. He works at the intersection of speed, growth, and usability, helping creators ship websites that load fast and convert. An active WordPress community contributor sharing through tools, tutorials, and direct collaboration. Tested practice, not theory.

WordpressThemesElementorn8nAIClaudeAutomationServer

Share your Thoughts

Get Instant Answers to all your questions about Nexter Blocks,
Extensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

What should I do if the category is still showing after excluding it by ID?

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.

What is the best practice for finding category IDs to exclude?

The best practice for finding category IDs is to navigate to Posts > 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&tag_ID='. This method ensures you are using the correct ID for exclusions.

Does the Taxonomy Listing block require any additional plugins to work?

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.

Last reviewed: April 14, 2026

Related Docs