Skip Navigation

[Resolved] Hidden Custom Field

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 9 months, 1 week ago.

Assisted by: Waqar.


Is there a way to add a hidden custom field to a CPT?

We have a news_category custom field setup that is used on our News CPT. It has various options (Announcements, Press Releases, etc). We would like to reusue this custom field on the Posts CPT but have it hidden and have the News value always submitted for a blog post.

We need this so we can do some filtering between the two CPTs.



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

Something like this can be achieved if the post is being created/edited through the front-end Toolset forms, but not through the default post editor in the admin area.

You can add a new custom field group that is common to 'News' and 'Posts' CPTs and include the 'news_category' field into that field group, so that is available for both CPTs.

Additional note: If the goal is to filter the posts by 'news_category', it would be more efficient to use a common custom taxonomy instead of a custom field. Taxonomies are better optimized for filtering and offer better performance.


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