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/single/news.php
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<article class="l-paper l-article m_single_news">
  <div class="article-title">
    <h1><?php the_title(); ?></h1>
    <aside>
      <time><?php the_time('Y/m/d') ?></time>
    </aside>
    <?php include(TEMPLATEPATH.'/_page_sns.php'); ?>
  </div>
  <?php $cat_name = get_category_by_slug('interview_new');
        $cat_id = $cat_name->cat_ID; ?>
  <div class="cover">
    <?php if(in_category($cat_id)) { ?>
      <?php
        $respondent = get_field('respondent');
        $interviewer = get_field('interviewer');
      ?>
      <?php if( have_rows('block')): ?>
        <?php while( have_rows('block') ): the_row(); ?>
          <?php
            $sub_title = get_sub_field('sub_title');
            $img = get_sub_field('cnv_img');
            $imgurl = wp_get_attachment_image_src($img, 'full');
            $question = get_sub_field('question');
            $answer = get_sub_field('answer');
          ?>
          <?php if ($sub_title): ?>
            <h2 class="headline"><?php echo $sub_title; ?></h2>
          <?php endif; ?>
          <?php if ($question): ?>
            <div class="question">
              <span style="width: 4em;display: inline-block;">———</span>
              <span><?php echo $question; ?></span>
            </div>
          <?php endif; ?>
          <?php if ($answer): ?>
            <div class="answer">
              <span class="interview_name"><?php echo $respondent; ?></span>
              <span><?php echo $answer; ?></span>
            </div>
          <?php endif; ?>

          <?php if($imgurl){ ?>
            <div class="pht_news">
              <img src="<?php echo $imgurl[0]; ?>" alt="">
            </div>
          <?php } ?>
        <?php endwhile; ?>
        <?php if ($interviewer): ?>
          <p class="interviewer">インタビュー:<?php echo $interviewer; ?></p>
        <?php endif; ?>
      <?php endif; ?>
    <?php } else { ?>
      <?php if (has_post_thumbnail()): ?>
        <?php the_post_thumbnail('16-9'); ?>
      <?php endif; ?>
    <?php } ?>
  </div>
  <?php the_content(); ?>

  <?php
    $include_card_table = get_field('include_card_table');
    if( $include_card_table ):
    $post = $include_card_table;
    setup_postdata( $post );
  ?>
    <?php if( have_rows('card_table')): ?>
      <?php include('_fight_card.php'); ?>
    <?php endif; ?>
  <?php wp_reset_postdata(); ?>
  <?php endif; ?>

</article>
<?php include('_links.php'); ?>
<?php endwhile; endif; ?>
<?php wp_reset_query(); ?>