Skip Navigation

[Resolved] custom fields for specific categories in posts

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
#2307847

Hi
i need to make custom fields for specific categories
i mean in posts section in admin panel there are categories section
i need to show custom fields in categories 1 when edit it before publish
and when edit categories 2 then show custom fields which i create in toolset
can i do this or there are other ways ?
Example :
i use posts section but i need custom fields show in universities categories just
and in posts there are articles categories too when i editing universities categories show that custom fields just in universities categories

#2308159

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

custom-field-group-conditional.png

Hi,

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

This is possible using the conditional settings for the custom field groups, as explained in this guide:
https://toolset.com/course-lesson/conditionally-display-custom-fields-in-wordpress-backend/#conditionally-display-a-group-of-custom-fields

For example, you'll create one custom field group that will contain only the fields that should be available for the 'universities' taxonomy term. Next, you'll create another custom field group, that will contain only the fields that should be available for the 'articles' taxonomy term. After that, you can use the "Appears on" settings in these field groups, to limit their display, based on the target taxonomies.
( example screenshot attached )

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.