Support Forum ยป User Profile

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: โœ…Meta Box and Oxygen Relationships Query #42425
    dan@iam39.com[email protected]
    Participant

    Its your tutorial I'm following.

    in reply to: โœ…Add number to my relationships #42170
    dan@iam39.com[email protected]
    Participant

    Don't worry I sorted it, my group had the same id as my post. Thanks anyway ๐Ÿ™‚

    in reply to: โœ…Add number to my relationships #42165
    dan@iam39.com[email protected]
    Participant

    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

Viewing 3 posts - 1 through 3 (of 3 total)