Using MB with Divi for images

Support General Using MB with Divi for imagesResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #32359
    Patrik JanssonPatrik Jansson
    Participant

    Good day!

    I´m trying to display a image from a custom field in Divi. The field appear as expected within the page builder (and it seem to read the field since it´s not giving a warning) - but it is not displayed in the builder or front-end.

    Is it misinterperating the array or something, maybe there is a workaround?

    #32360
    Patrik JanssonPatrik Jansson
    Participant

    On further investigation - the question might be: how do I output the url of an image?

    #32376
    Patrik JanssonPatrik Jansson
    Participant

    Info from Divi:

    "The Meta Box plugin is probably returning a array or the Image ID when you use its Image Field as a Dynamic Data Source - and that will not work. It will work as text of course"

    Is there a way of translating the output, if there is a function that can be run in code snippets or simular?

    #32406
    Long NguyenLong Nguyen
    Moderator

    Hi Patrik,

    If you use the image field with the setting 'multiple' => true, it will save the list of image IDs in the database and Divi might not work with that data type. For example: field type image_advanced, image, image_upload.

    You can try to use the field type single_image, it works like the featured image option of WordPress.

    #43041
    hello@kjkdesigns.co.uk[email protected]
    Participant

    Hi Long,

    I'm using the single image to get a dynamic image but nothing is loaded on the frontend.

    Is there something else I need to do?

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.