<div class="meta__date meta__item"><?php echo get_the_date(); ?></div> <div class="meta__categories meta__item">…">

WordPress 記事の日時、カテゴリ、タグを表示する

2019-04-25 /
<div class="meta">
  <div class="meta__date meta__item"><?php echo get_the_date(); ?></div>

<div class="meta__categories meta__item">
  <i class="fas fa-folder-open"></i>
  <?php the_terms(get_the_ID(), 'category'); ?>
</div>

<?php if(has_tag()): ?>
  <div class="meta__tags meta__item">
    <i class="fas fa-tags"></i>
    <?php the_tags('', ', '); ?>
  </div>
<?php endif; ?>