Support

Account

Forum Replies Created

  • Nevermind, this was how:

    			if( have_rows('team_contact_details')) :
    				while(have_rows('team_contact_details')) : the_row();
    					$content .= '<h3>'. get_sub_field('contact_label') .'</h3>';
    					
    					if(get_sub_field('contact_link') == 'phone') {
    						$content .= '<div>'. get_sub_field('phone_number') .'</div>';
    					} else {
    						$content .= '<div>'. get_sub_field('email_address') .'</div>';
    					}
    				endwhile;
    			endif;
  • This is the code I’ve tried using: https://paste.ofcode.org/VfWAbHK2X2VSwvHFBXpCY4

    At this point I’d be willing to pay $50 for the correct answer (assuming it’s easy enough). I just need a way of displaying those repeater fields in a list in the PDF.

    If it can all be created before the PDF code is generated, then stored as a variable somehow, I can include the variable in the PDF code and it should work.

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