Hi Long Nguyen,
Apologies to resurrect this post, but this was exactly the information I needed. If I wanted to display this on the single post template, how would I do this? It gives me the following PHP, but it doesn't seem to do anything.
<?php
$groups = rwmb_meta( 'plots' );
foreach ( $groups as $group ) {
// Field plots:
$post_id = $group[ 'plots' ] ?? '';
?>
<p>Selected post ID: <?= $post_id ?></p>
<?php
// Field quantity:
echo $group[ 'quantity' ] ?? '';
}
?>
Thanks again
Dan