Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $posts = get_posts('numberposts=100&category=557');
- global $post;
- ?>
- <?php if($posts): foreach($posts as $post): setup_postdata($post); ?>
- <div style="padding:15px 0;border-bottom:1px dotted #dddddd;">
- <strong>
- <?php the_field('team_name'); ?>『<?php the_field('title'); ?>』
- </strong>
- <br>
- <span style="font-size:80%;">
- 【公演日程】<strong>
- <?php $week = array("日", "月", "火", "水", "木", "金", "土"); ?>
- <?php $date = date_create(''.get_field('schedule_start').''); echo date_format($date,'Y年m月d日') . "(" . $week[(int)date_format($date,'w')] . ")" ; ?>
- 〜
- <?php $date = date_create(''.get_field('schedule_end').''); echo date_format($date,'Y年m月d日') . "(" . $week[(int)date_format($date,'w')] . ")" ; ?>
- </strong>
- <?php the_field('stages'); ?></span><br>
- <span style="font-size:80%;"><?php the_field('profile'); ?></span><br>
- <span style="font-size:80%;">【会場】<?php the_field('location'); ?></span><br>
- <!--URlがあれば表示、の分岐 ここから-->
- <?php $imgid = get_field('url'); ?>
- <?php if(empty($imgid)):?>
- <?php else:?>
- <span style="font-size:80%;">【公演情報】<a href="<?php get_field('url')?>" target="_blank"><?php the_field('url'); ?></a></span><br>
- <?php endif;?>
- <!--URlがあれば表示、の分岐 ここまで-->
- <!--見る見た表示 ここから-->
- <?php
- $cfcb = get_field_object('mirumita');
- $cfcbId = get_post_meta($post->ID,'mirumita');
- $cfcbId = $cfcbId[0];
- if($cfcb) {
- foreach($cfcbId as $v) {
- echo '<span style="font-size:60%;" class="ico-'. $v. '">' . $cfcb['choices'][$v] .'</span>';
- }
- }
- ?>
- <!--見る見た表示 ここまで-->
- </div><!--data_box-->
- <?php endforeach; endif;?>
- <!--公演情報呼び出しここまで-->
- $posts = get_posts('numberposts=100&category=557');
- $posts = get_posts(
- array(
- 'numberposts' => 100,
- 'category' => 557,
- 'orderby' => 'meta_value',
- 'meta_key' => 'schedule_start',
- 'order' => 'ASC'
- )
- );
- $posts = get_posts(
- array(
- 'numberposts' => 100,
- 'category' => 557,
- 'orderby' => 'meta_value',
- 'meta_key' => 'schedule_start',
- 'order' => 'ASC',
- 'meta_query' => array(
- 'key' => 'schedule_start',
- 'value' => array('2018/04/01', '2018/05/31'),
- 'compare' => 'BETWEEN',
- )
- )
- );
Add Comment
Please, Sign In to add comment