Hello,
I have an image gallery meta box(image advanced) for a custom post type.
I also have assigned some custom meta boxes for all attachments. I want to get those metas inside the loop in my single custom post type template. Cam I do that?
I use the known snippet to get those with no result.
$painting_residence = rwmb_meta( 'colours_attachment_current_residence', $args = array(), $painting['ID'] );
The code inside the loop is
$paintings = rwmb_meta( 'colours_gallery_images', $args = array(), get_the_ID() );
if ( ! empty($paintings) ) {
foreach ( $paintings as $painting ) {
$attachment_image = wp_get_attachment_url( $painting['ID'] );
$painting_origin = rwmb_meta( 'colours_attachment_origin_area', $painting['ID'] );
echo $painting_origin;
}
}
Any help would be appreciated.