Created
February 11, 2011 09:06
-
-
Save farinspace/822101 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 $pages = get_pages(); ?> | |
<?php while( $mb->have_fields_and_multi( 'buttons' ) ) : ?> | |
<?php $mb->the_group_open(); ?> | |
<div class="button"> | |
<a href="#" class="dodelete button">Remove</a> | |
<?php $mb->the_field('s_field'); ?> | |
<select name="<?php $mb->the_name(); ?>"> | |
<option></option> | |
<?php foreach ($pages as $page): ?> | |
<option value="<?php echo $page->ID; ?>"<?php $mb->the_select_state($page->ID); ?>><?php echo $page->post_name; ?></option> | |
<?php endforeach; ?> | |
</select> | |
</div> | |
<?php $mb->the_group_close(); ?> | |
<?php endwhile; ?> | |
<a href="#" class="docopy-buttons button">Add</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment