Skip Navigation

[Resolved] How do I retrieve the list of custom fields and their custom post types?

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

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 yarivH 7 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#466330

I am trying to display a list of custom fields and their custom post types. For example, I have a custom post type "person", field group "face" and a custom field "eye color". I'm not using Views.

I see the custom post types are stored in wp_options where option_name is wpcf-custom-types and the custom fields are stored in wp_options where option_name is wpcf-fields, but I can't find the field groups and their connections to post types and fields.

Thanks

#466416

Dear yariv,

The Types plugin is using custom posts to store the custom field group information, the post type slug is "wp-types-group", you can run SQL query in your query in you database, for example:

SELECT * FROM `wp_posts` WHERE `post_type` LIKE 'wp-types-group'
#466612

And the relationship between groups and fields is in post_meta for this post.
Thanks.

The forum ‘Types Community Support’ is closed to new topics and replies.