Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $wpalchemy_media_access;
- $selected = ' selected="selected"';
- ?>
- <div class="my-meta-control">
- <?php $mb->the_group_open(); ?>
- <!-- People Counter -->
- <?php $mb->the_field('next_film'); ?>
- <label for="<?php $mb->the_name(); ?>">Next Film</label><select name="<?php $mb->the_name(); ?>">
- <?php
- $filmsList = new WP_Query(array(
- 'post_type' => 'films',
- 'posts_per_page' => -1,
- 'orderby' => 'title',
- 'order' => 'ASC'
- ));
- while ( $filmsList->have_posts() ) : $filmsList->the_post();
- echo '<option value="'. get_the_ID() . '"';
- if ($metabox->get_the_value() == (get_the_ID())) echo $selected;
- echo '>' . get_the_title() .'</option>';
- endwhile;
- ?>
- </select>
- <?php $mb->the_field('current_season'); ?>
- <p class="group"><label for="<?php $mb->the_name(); ?>">Current Season</label><input type="text" name="<?php $mb->the_name(); ?>" value="<?php $mb->the_value(); ?>"/></p>
- <?php $mb->the_field('season_1_dates'); ?>
- <p class="group"><label for="<?php $mb->the_name(); ?>">Season 1 Dates</label><input type="text" name="<?php $mb->the_name(); ?>" value="<?php $mb->the_value(); ?>"/></p>
- <?php $mb->the_field('season_2_dates'); ?>
- <p class="group"><label for="<?php $mb->the_name(); ?>">Season 2 Dates</label><input type="text" name="<?php $mb->the_name(); ?>" value="<?php $mb->the_value(); ?>"/></p>
- <?php $mb->the_field('season_3_dates'); ?>
- <p class="group"><label for="<?php $mb->the_name(); ?>">Season 3 Dates</label><input type="text" name="<?php $mb->the_name(); ?>" value="<?php $mb->the_value(); ?>"/></p>
- <?php $mb->the_group_close(); ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement