Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bytesource/e3a9ab67f60dcc1c5f83766560e8244e to your computer and use it in GitHub Desktop.
Save bytesource/e3a9ab67f60dcc1c5f83766560e8244e to your computer and use it in GitHub Desktop.
<?php
// 13: Post ID of the page the repeater is located on
if( have_rows('questions_and_answers', 13) ):
// loop through the rows of data
while ( have_rows('questions_and_answers', 13) ) : the_row();
// display a sub field value
//193: Post ID of reusable part template
$postmeta = get_post_meta( 193, 'ct_builder_shortcodes', true );
echo do_shortcode( $postmeta );
endwhile;
else:
echo __( "No questions found.");
endif;
?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment