Created
October 14, 2018 13:14
-
-
Save bytesource/e3a9ab67f60dcc1c5f83766560e8244e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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