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

Almost every site has a category that should not be on display — Uncategorized, an internal tag, an archive of old announcements.

The listing takes term IDs to exclude, and an include list if you would rather name the few you want than the many you do not.

For every Taxonomy Listing setting in one place, see the Taxonomy Listing guide.

Before You Start

  • Edition: Pro — the Taxonomy Listing block needs Nexter Blocks Pro.
  • Block to enable: Taxonomy Listing, switched on under Nexter > Blocks in your WordPress dashboard.
  • The term IDs you want. Open a category to edit it and the ID is in the address bar as tag_ID=.

Steps

  1. Select your Taxonomy Listing block and find the include and exclude fields.
Include and exclude ID fields
  1. Enter the term IDs, separated by commas, then publish.
Excluding categories by ID

How It Behaves

Both fields take a comma-separated list of IDs and are applied to the query before anything renders.

  • Exclude removes exactly those terms. Measured on a 7-category site: excluding two IDs returned 5 terms, with precisely the named two gone.
  • Include restricts the list to those terms. Measured: one ID returned exactly one term.
  • Several IDs are separated by commas. Measured with two, both applied.
  • Include and exclude are separate fields. Use one or the other; naming the same term in both is asking for confusion.
  • Excluding a parent does not exclude its children. They are separate terms with their own IDs, so list them too if you want them gone.
  • Type a number into the item count; do not leave it blank. Measured on 5.0.6: a blank field renders one term rather than all of them, and so does 0. Reported to the developers.
  • Measured with Nexter Blocks Pro deactivated: the block renders nothing at all — not a wrapper, not a message, zero output. This is a Pro-only block.

Limitations

  • Pro only — nothing renders with Pro deactivated.
  • IDs, not names or slugs. A readable slug will not work here.
  • IDs are fragile. Deleting and recreating a term gives it a new ID and silently breaks the setting, with no warning on the page.
  • The exclusion is per block. Another Taxonomy Listing elsewhere on the site needs its own copy of the list.
  • A category hidden here is still public. Its archive is still reachable and still indexable; this only controls what this listing shows.
  • Child terms are not excluded with their parent.

Troubleshooting

Where do I find a term ID?

Open the category for editing. The address bar ends with tag_ID= followed by the number.

The exclusion stopped working

A term was probably deleted and recreated, which changes its ID. Re-enter the current IDs.

A sub-category is still showing

Excluding a parent does not exclude its children. Add their IDs as well, or limit the listing to top-level terms.

Nothing is being excluded

Check the format: numeric IDs separated by commas, with no slugs or names mixed in.

Related Docs

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: September 27, 2026

Related Docs