Skip Navigation

[Resolved] Hiding some taxonomy terms from meta box on new post / edit post screen

This thread is resolved. Here is a description of the problem and solution.

Problem:

When creating a new custom post, or editing an existing one, I want to list all of the taxonomy terms in the Departments meta box except for a couple of terms.

Is there a recommended way to hide / exclude terms in the meta box?

Solution:

There isn't such kind of built-in feature within Toolset plugins or WordPress.

You might consider custom codes, for example:

https://toolset.com/forums/topic/hiding-some-taxonomy-terms-from-meta-box-on-new-post-edit-post-screen/#post-2246649

Relevant Documentation:

This support ticket is created 3 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Saul Baizman 3 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#2246297

Hi there,

I've created a custom taxonomy we'll call Departments and associated it with a custom post type. When creating a new custom post, or editing an existing one, I want to list all of the taxonomy terms in the Departments meta box except for a couple of terms.

Is there a recommended way to hide / exclude terms in the meta box? Before writing this message, I did some research on the web, and I found some possibilities using the following filters: list_terms_exclusions, pre_get_terms, and terms_pre_query.

Thanks for any guidance you can offer.

Saul

#2246649

Hello,

There isn't such kind of built-in feature within Toolset plugins or WordPress.

You might consider custom codes, I have searched it in google, and found some related topics, for example:
https://stackoverflow.com/questions/11245378/how-to-hide-some-categories-in-category-list-under-post-in-wordpress

According to our support policy, we don't provide such kind of custom codes support, you can also check it with our Toolset contractors:
https://toolset.com/contractors/

#2247451

My issue is resolved now. Thank you!