Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
query_posts(''); // 特定のカテゴリーを除外
if (have_posts()) :
while (have_posts()) :
the_post();
?>
<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
<div class="meta"><?php the_time('Y/ m/ d') ?> by <?php the_author() ?> in <?php the_category(', '); ?></div>
<div class="detail">
<?php the_content(); ?>
</div>
<?php
endwhile; endif;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment