Open EDGFX opened 2 years ago
+1
This issue is singlehandedly holding up a site deployment. Hoping we can get some insight on this soon. If anyone knows of any workarounds, that would be awesome.
Here is a fix that was offered to me by Oxygen Support that helped solve the issue:
Simply replace tool_image with the ID of the image field you're pulling from.
workaround worked for me, thanks EDGFX!
Code:
<?php
global $meta_box_current_group_fields;
$image_src = wp_get_attachment_image_src($meta_box_current_group_fields['tool_image'][0], "full")[0];
?>
<img class="mb-image__img" src="<?= $image_src;?>">
Made a video for the temporary fix mentioned in this post:
For Single Image type use this code:
<?php
global $meta_box_current_group_fields;
$image_src = wp_get_attachment_image_src($meta_box_current_group_fields['tool_image'], "full")[0];
?>
<img class="mb-image__img" src="<?= $image_src;?>">
Describe the bug I have a custom post type that houses different "tools" such as Calculators, Brochures, etc. Within each of these "tool" categories, there is a cloneable Group field that houses tool name, image (advanced), URLs, etc. Here is what the MetaBox structure looks like:
Here is what a post in this CPT looks like:
The issue I'm having is that the "Individual Tools" images are being shown in 150x150 image modules on the front-end despite the actual image dimensions being about 430x250:
I've submitted a forum post in the MetaBox forums and this is what I was told:
Provide the link to a Sandbox install where the issue is present. If the issue only exists on a specific post or template, provide a direct link to that post or template.
https://wordpress-313797-2433525.cloudwaysapps.com/austin/tools/calculators/
IF YOU CAN'T PROVIDE A SANDBOX REPRODUCTION: Steps required to reproduce the bug: Steps to reproduce the behavior: