Hi,
I was trying to use repeater to query data and wanted to output the image using php function return value option for dynamic data in Oxygen. However, with my lack of knowledge in php, I have no idea how to achieve that. (I want to use image advanced since I'll have a lot of pictures)
So I came up with the following code;
function my_get_mb_advanced_image($field) {
$term_id = get_queried_object_id();
$images = rwmb_the_value( $field, array( 'size' => 'thumbnail' ) );
foreach ( $images as $image ) {
return $image['url'];
}
But I guess it was completely wrong since it could not display the image.
So if anybody could help me on this, that'd be really awesome.
Thanks!
Nanan