Skip to content

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.
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.

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.

Share your Thoughts

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

Why is my category still showing after I add its ID to the exclude field?

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 > Categories, then hovering the category and reading the number after category&tag_ID= in the edit URL. A common gotcha is entering the wrong number or forgetting that multiple IDs must be separated by commas.

What do I need before I can exclude a category by ID in WordPress?

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.

Can I hide multiple categories at once from a WordPress category list?

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.

How do I find a WordPress category ID to exclude it?

The page uses the Dashboard path Posts > Categories. Hover over the category you want, then look at the edit URL shown at the bottom of the browser. The number after category&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.

Can I use this method to hide tags or product categories too?

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.

What is the best way to use a category list when I want some categories hidden from certain visitors?

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 or try the LIVE BLOCK LINK.

Last reviewed: August 18, 2026

Related Docs