Support

Account

Home Forums Add-ons Repeater Field Using get_post_meta as Fallback on Repeaters Reply To: Using get_post_meta as Fallback on Repeaters

  • ok thanks – so I can get a specific row output like so…

    <?php 	
    	$rows =  get_post_meta( 348, 'testimonials', false ); // get all the rows
    	$end_testimonial_content = get_post_meta( 348, 'testimonials_4_testimonial', true );// get the sub field value 
    	$end_testimonial_header = get_post_meta( 348, 'testimonials_4_testimonial_header', true ); // get the sub field value 
    	$last =  '<blockquote>' . $end_testimonial_content . '</blockquote><p>' . $end_testimonial_header . '</p>';
    	echo $last; 
    
    	?>

    I also tried with end function but couldn’t get it to work, but as a fallback at least I have something on the page.