Skip to content

Instantly share code, notes, and snippets.

@j-mccarthy
Created February 12, 2015 19:37
Show Gist options
  • Save j-mccarthy/5384411c996941502ebb to your computer and use it in GitHub Desktop.
Save j-mccarthy/5384411c996941502ebb to your computer and use it in GitHub Desktop.
Tax meta class - repeater field
<?php
// Fields set-up
$repeater_fields[] = $camplight_event_meta->addText('event_info',array('name'=> 'Event specific info points '),true);
$my_meta->addRepeaterBlock('event_info_re_',array('inline' => true, 'name' => 'Repeater Block ','fields' => $repeater_fields));
// Front end template
$repeater_array = get_tax_meta( $not_sure_what_this_is, 'event_info_re_', true);
foreach($repeater_array as $arr) {
echo '<li>' . $arr['event_info'] . '</li>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment