Skip Navigation

[Resolved] Display taxonomy term on specific child taxonomy only

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/Karachi (GMT+05:00)

Author
Posts
#2635637
Screenshot 2023-08-21 at 13.14.13.jpg

Hi,

I am creating taxonomy terms that apply to a specific child taxonomy only.

I see that I cannot specify which child taxonomy I want the term to be applied to: the terms appear in every taxonomy item.

Is there a way to restrict the term to a specific child taxonomy?

#2635999

Maybe more details can be helpful in order to understand what I am trying to achieve, since I believe there are other ways to do it.

I am building different archive pages, one for each term within a taxonomy.

Now, my client doesn't want to edit these pages with the editor (classic or block), but would like to just use custom fields instead.

Is there a way to create and assign custom fields to a specific archive page? Or a specific taxonomy term?

#2636061

Hi,

Thank you for contacting us and I'd be happy to assist.

Your observation is correct and there is no straightforward feature or hook available to conditionally display the taxonomy term fields for the selected terms in the admin area.

One workaround I can think of will require a fair amount of code customization to load custom CSS code to show/hide the fields in the term edit screen, as discussed in this thread:
https://stackoverflow.com/questions/62732018/how-to-modify-css-in-a-specific-page-of-the-wp-admin-dashboard-backend

For more personalized assistance around custom code, you can also consider hiring a professional from our list of recommended contractors:
https://toolset.com/contractors/

regards,
Waqar