Skip to content

Instantly share code, notes, and snippets.

@takatoshi
Created June 11, 2012 18:13
Show Gist options
  • Save takatoshi/2911700 to your computer and use it in GitHub Desktop.
Save takatoshi/2911700 to your computer and use it in GitHub Desktop.
<div id="content">
<?php if (have_posts()) : ?>
<?php if (is_search()) : ?>
<?php endif; ?>
<?php while (have_posts()) : the_post(); ?>
<article class="article">
<header>
<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<ul class="articleinfo">
<li class="date"><?php echo get_the_date(); ?></li>
<li class="tag"><?php echo get_the_tag_list(null, ', ', null); ?></li>
</ul>
</header>
<div class="pic_holder" ><?php the_post_thumbnail(array(220, 220)); ?></div>
<?php the_content('続きを読む'); ?>
</article><!-- /.article -->
<?php endwhile; ?>
<?php if (!is_single()) : ?>
<?php endif; ?>
<?php else: ?>
<?php if (is_search()) : ?>
<?php elseif(is_404()) : ?>
<?php endif; ?>
<?php endif; ?>
</div><!-- /#content -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment