Skip to content

Instantly share code, notes, and snippets.

@MjHead
Last active March 6, 2021 12:28
Show Gist options
  • Save MjHead/2d38a5a7537fa8ea607d5b0cbe4b4ae9 to your computer and use it in GitHub Desktop.
Save MjHead/2d38a5a7537fa8ea607d5b0cbe4b4ae9 to your computer and use it in GitHub Desktop.
Get and process JetEngine repeater field data from the code
<?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