Created
February 12, 2015 19:37
-
-
Save j-mccarthy/5384411c996941502ebb to your computer and use it in GitHub Desktop.
Tax meta class - repeater field
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 | |
// 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