Skip Navigation

[Closed] I'm trying to add a custom field to a Divi theme template

This support ticket is created 3 years 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.

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 3 years ago.

Author
Posts
#2292325
Untitled.png

I created a custom post type with a custom field.

I am trying to add this custom field to a divi template I have to style these custom posts, but the field I created is not showing up in the list of custom fields.

How can I have my custom fields in toolset show up in this list?

Thanks!

#2292573

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

Do your posts already have values for that custom field?

I imagine that Divi scans a preview post to see what fields exist for that post when producing the list of fields that can be used as a source, and if the post being scanned doesn't have an entry for some field it will be missing from the list.

But I'm not sure as it is part of the Divi UI.

Toolset custom fields are stored as standard post meta (in the table wp_postmeta), and if your posts have entries for a Types custom field then I'd expect them to be picked up by Divi (just like if you were adding custom fields using the native WP UI). The only thing to be aware of is that Types stores custom fields with a 'wpcf-' prefix, so if you had a custom field "priority" it would be stored in wp_postmeta with a key of 'wpcf-priority'.

If your posts have entries for the custom fields and they don't show up, you would be better asking Divi support why not.

The topic ‘[Closed] I'm trying to add a custom field to a Divi theme template’ is closed to new replies.