HEX
Server: Apache
System: Linux 4485441ca2e2 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 11:03:07 UTC 2025 aarch64
User: (1000)
PHP: 8.2.24
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/themes/ganryujima_new_1602/articles/events.php
<?php $paged = get_query_var('paged'); query_posts('post_type=grjm_events&posts_per_page=20&meta_key=event_date&orderby=meta_value_num&order=DESC&paged='.$paged); ?>
<?php if (have_posts()): ?>
  <div class="l-lists">
  <?php $list_year = 0; ?>
  <?php while (have_posts()): the_post(); ?>
    <?php
      $date = get_field('event_date',$post->ID);
      $year = substr($date, 0, 4);
      $month = substr($date, 4, 2);
      $days = substr($date, 6, 2);
      $day = substr($date, 8);
      if( $list_year != $year ){
        echo '<p class="m-year">'.$year.'</p>';
        $list_year = $year;
      }
    ?>
    <article class="table_article m_article_events" alt="<?php the_permalink(); ?>">
      <div class="inner">
        <a href="<?php the_permalink() ?>">
          <span class="date">
            <span class="days">
              <?php echo $month.'.'.$days; ?>
            </span>
            <span class="day">
              (<?php echo $day; ?>曜日)
            </span>
          </span>
          <span class="cnt">
            <h1><?php the_title(); ?></h1>
            <aside>
              <span>
              	<i class="fa fa-map-marker"></i>
              	<?php the_field('place',$post->ID); ?>
              </span>
              <span>
              	<i class="fa fa-clock-o"></i>
              	<?php the_field('time',$post->ID); ?>
              </span>
            </aside>
          </span>
        </a>
      </div>
    </article>
  <?php endwhile; ?>
  </div>
<div class="pagination"><?php wp_pagination(); ?></div>
<?php endif; ?>
<?php wp_reset_query(); ?>