Single Image custom field is not showing in frontend

Support General Single Image custom field is not showing in frontendResolved

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #31250
    GibberGibber
    Participant

    Hi, there!

    I have an issue with Single Image custom field loading on the frontend. I use Oxygen Builder (3.8.1). I know that with v3.9 Oxygen will have integration with Meta Box but anyway now it should work as well.

    I tried a lot of ways and here are two of them:
    - putting the id in dynamic data field () for image in Oxygen - it generates this shortcode [oxygen data='meta' key='indt_prtfl_image']
    - also tried with shortcode [rwmb_meta id="indt_prtfl_image"]
    Attached screensots.

    id in MB Builder
    id in Oxygen Dynamic data Meta Custom field

    image not showing on frontend

    I'm not sure if this is Meta Box specific but the featured image and other text fields are loading just fine.

    Could you help please?

    #31252
    Long NguyenLong Nguyen
    Moderator

    Hi Gibber,

    Oxygen version 3.9 Alpha or Beta does not look works with the image fields. You can try to report them to fix it in the next update.

    For now, please follow this topic to create a function that returns the image URL as the data type of the Oxygen Image component.
    https://support.metabox.io/topic/getting-field-values-from-settings-page/
    https://docs.metabox.io/fields/single-image/#template-usage

    #31254
    GibberGibber
    Participant

    Hi Long,

    Thank you for your fast reply!

    I am not sure that I know how to implement this in Oxygen builder.

    Could you please explain more?

    #31257
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Here is the demo screen record https://share.getcloudapp.com/04u59mqz

    Function to get image URL:

    function get_single_image_url() {
        $image = rwmb_meta( 'single_image', array( 'size' => 'large' ) );
        return $image['url'];
    }

    Use the function with Code Snippets because Oxygen will prevent theme files loaded.

    #33239
    ViktorViktor
    Participant

    I just faced the same issue on the Oxygen 3.9 release. Wasn't it fixed in the final version?

    #33246
    Long NguyenLong Nguyen
    Moderator

    Hi,

    In case of using Oxygen Builder, please reach to them if you have any issues with installation, configuration, compatibility, or usage.
    Refer to our support policy https://support.metabox.io/topic/support-policy/

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