Skip to content

Instantly share code, notes, and snippets.

@chocotaro chocotaro/loop.php Secret
Last active Aug 12, 2016

Embed
What would you like to do?
記事ループの基本形
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
<?php endwhile; ?>
<?php else : ?>
記事がありません
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.