Skip to content

Instantly share code, notes, and snippets.

@megane9988
Created August 22, 2016 06:09
Show Gist options
  • Save megane9988/534d932f817a5fe882065d62feff4f98 to your computer and use it in GitHub Desktop.
Save megane9988/534d932f817a5fe882065d62feff4f98 to your computer and use it in GitHub Desktop.
普通のループ
<ul>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<li>
<?php the_time('Y年m月d日'); ?> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</li>
<?php endwhile; else : ?>
<li>投稿が見つかりません。</li>
<?php endif; ?>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment