Last active
March 6, 2021 12:28
-
-
Save MjHead/2d38a5a7537fa8ea607d5b0cbe4b4ae9 to your computer and use it in GitHub Desktop.
Get and process JetEngine repeater field data from the code
This file contains hidden or 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 | |
// Returns an array of repeater rows or boolean false | |
$meta = get_post_meta( get_the_ID(), 'repeater_field_name', true ); | |
if ( ! empty( $meta ) ) { | |
foreach( $meta as $row ) { | |
echo $row['child_field_name_1']; | |
echo $row['child_field_name_2']; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment