Image advanced field in groups are only shown in a Thumbnail size

Support MB Group Image advanced field in groups are only shown in a Thumbnail sizeResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #36088
    David ConwayDavid Conway
    Participant

    I'm using Oxygen Builder and Metabox Groups to house various PDFs, including an Image, a Title, a Blurb, and a text field for a PDF link. This is what the images within the Image Advanced fields look like when placed within a Group:

    Image Advanced Within Group Showing In Thumbnail Size

    This is what they look like when placed outside of a group:

    Image Advanced Outside Of Group Showing Proper Size

    Here is the Custom Field structure utilizing the Group field for reference:

    Custom Field Setup

    Any help on this matter would be greatly appreciated. Hope I've provided enough background.

    #36097
    SmarijnSmarijn
    Participant

    Hi,

    I have the exact same problem so I'd love to read along!

    Sincerely,
    Armand

    #36103
    Long NguyenLong Nguyen
    Moderator

    Hi guys,

    This is how the Oxygen gets and displays the image from the group on their side. You need to contact Oxygen support to ask for help with this case.

    #36108
    SmarijnSmarijn
    Participant

    Thank you Long!
    I will contact Oxygen with this problem.
    Regards,
    Armand

    #37278
    Davor MlinarićDavor Mlinarić
    Participant

    Temporarly solution for 'Single Image' type. A code block should be added inside repeater.

    <?php
    global $meta_box_current_group_fields;
    $image_url = wp_get_attachment_image_src($meta_box_current_group_fields['your_image'], "full")[0];
    ?>

    For other image types that allow multiple images. This code will take url of first image.

    <?php
    global $meta_box_current_group_fields;
    $image_url = wp_get_attachment_image_src($meta_box_current_group_fields['your_image'][0], "full")[0];
    ?>
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.