Support » Plugin: Pods - Custom Content Types and Fields » Custom Field and Divi 4 Template

  • Resolved NetworkAdHoc

    (@networkadhoc)


    I have a custom field (created with PODS) in which I insert a link to the youtube video.
    When I create a layout of the post (using the Divi (theme) text module with the “dynamic content” function to call the custom field “Video”), I don’t see the typical youtube player, but only a white space.
    I tried to use both the field type “Simple text”, “Visual editor” (and in backend you can see the preview of the video) and “oEmbed” (also here in backend you can see the preview of the video). Despite all these tests, I can’t see the video in frontend.
    I have already asked for assistance to the producer of the theme but I am told that it is a conflict generated by Pods.
    Is anyone in the same situation as me? Is there a solution?

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @networkadhoc,

    We’d need more info about how you’ve setup your field exactly. Could you provide us with your field settings?
    Pods merely stores it as metadata, nothing more so I am uncertain why this would conflict with Divi.

    Cheers, Jory

    Thread Starter NetworkAdHoc

    (@networkadhoc)

    Hi jory,
    I list below the settings of the additional field in question:
    Basic:
    – Label: Video Ricetta
    – Name: ricetta_video
    – Field Type: oEmbed
    Additional Field Option
    – Embed Width: 0
    – Embed Height: 0
    – Embed Height: YES
    Advanced Settings
    – All default settings
    Rest API
    – Read: Yes
    – Write: Yes

    When I fill the field in the backend of the post, everything works well. But when I call him through the builder theme of DIVI Theme that field is not displayed.
    Divi Theme did some tests and the videos of Youtube inserted in a normal text field are displayed correctly, only those that are inserted through the additional field of Pods do not work.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @networkadhoc
    Could you try to set the field as plain text instead of an oEmbed field?
    Since Pods handles some formatting it might not be compatible with Divi.
    Cheers, Jory

    having trouble with pods and divi4 as well… divi does not recognize any of the custom fields I created for my custom posts… Im trying to export it all to code to chek but I cant tseem to understand how to deal with the code generated by the “export to code” plugin.

    Plugin Author Jory Hogeveen

    (@keraweb)

    @hfogli I doubt exporting to code would make a difference in this case.
    Not sure why Divi doesn’t recognize the custom fields (meta). Since this is a WordPress core functionality (Pods only provides the UI) you’ll have to take this up with their support.

    Plugin Author Jory Hogeveen

    (@keraweb)

    @networkadhoc @hfogli
    I took a closer look into the Divi theme on Dynamic Content.
    These are in fact 2 Divi issues:

    1. iframes in dynamic content are not supported:
    Pods field like oEmbed generate HTML. This is in Divi not allowed for dynamic content. Even if you enable HTML in the dynamic content settings it sill runs the code through wp_kses_post which removes HTML elements like iframes etc.
    https://developer.wordpress.org/reference/functions/wp_kses_post/

    2. oEmbed URL’s in dynamic content are not supported:
    If you switch to a regular URL/Text field and add the YouTube url there it still won’t show a YouTube embed since dynamic content in Divi doesn’t support shortcodes and other automatic WP handling like oEmbeds.

    In short, this isn’t a Pods issue but a Divi issue since it doesn’t support oEmbed in dynamic content at all.

    Since this post is public you can share it with the Divi theme development team.
    Closing this ticket here!

    Cheers, Jory

    Hey mate, maybe that’s not all. I cant seem to use any kind of custom fields from Pods, even simples text. oEmbed is not only the issue here…

    Divi4, however, seems to recognize custom fields from ACF plugin. WordPress core recognizes both.

    Would it be too expensive for you to take a look and sort this out? Could I get a quote on this? Cheers

    • This reply was modified 2 years, 1 month ago by hfogli.
    Plugin Author Jim True

    (@jimtrue)

    The fact that WP Core recognizes both and Divi doesn’t recognize Pods leads this to a Divi issue.

    Plugin Author Jim True

    (@jimtrue)

    @hfogli If you want to get something coded to work with Divi, you need to follow this process:
    https://docs.pods.io/faqs/pods-work-plugins-can-get-plugin-coded-work-pods/

    Since it’s a premium theme, it has to be driven by someone who has paid for the theme and can open a support ticket with Elegant Themes.

    Plugin Author Jory Hogeveen

    (@keraweb)

    I cant seem to use any kind of custom fields from Pods, even simples text. oEmbed is not only the issue here…

    I tested this myself and it worked fine. Keep in mind that is you use “private” keys (starting with an underscore) Divi will not recognize the fields.
    Other than that, Divi doesn’t check ACF / Pods or any custom fields handler. It merely fetches all available meta keys from the database (not regarding any plugin) so there shouldn’t be a difference in using Pods or ACF.

    So in short, I think this might be a bug related to an other plugin or customization.
    You could try Health Check to find out where/when the issue happens:
    https://nl.wordpress.org/plugins/health-check/

    Cheers, Jory

    I’m also having the same problem where a custom fields in a custom post type are not recognised in the Divi Theme Builder Dynamic Content fields… This is definitely a Divi issue and needs to be looked at

    @keraweb

    I’ve created an issue in GitHub for this, There is definitely an issue with Divi not displaying custom fields generated using Pods in the dynamic field handler

    https://github.com/pods-framework/pods/issues/5565

    To be clear, the issue here is actually with the producer’s of Divi (ElegantThemes.com). They’ve acknowledged that they have only built the integration to pull custom fields from the AFC plugin, but are currently working on fixing it so that ALL custom fields, regardless of what method was used to create them, will show up in Divi’s dynamic content. If you want updates on this solution, you’ll need to contact ElegantThemes.

    @keraweb So there’s no way to use ACF and Divi dynamic content to pull in a Youtube embed code? Is there a workaround?

    @networkadhoc @hfogli
    I took a closer look into the Divi theme on Dynamic Content.
    These are in fact 2 Divi issues:

    1. iframes in dynamic content are not supported:
    Pods field like oEmbed generate HTML. This is in Divi not allowed for dynamic content. Even if you enable HTML in the dynamic content settings it sill runs the code through wp_kses_post which removes HTML elements like iframes etc.
    https://developer.wordpress.org/reference/functions/wp_kses_post/

    2. oEmbed URL’s in dynamic content are not supported:
    If you switch to a regular URL/Text field and add the YouTube url there it still won’t show a YouTube embed since dynamic content in Divi doesn’t support shortcodes and other automatic WP handling like oEmbeds.

    In short, this isn’t a Pods issue but a Divi issue since it doesn’t support oEmbed in dynamic content at all.

    Since this post is public you can share it with the Divi theme development team.
    Closing this ticket here!

    Cheers, Jory

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @344kellogg
    I’m not aware of a workaround, sorry. The way Divi handles this is not something we can change.
    Cheers, Jory

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Custom Field and Divi 4 Template’ is closed to new replies.