『オレンジのあじがする』

It tastes like an orange!ワードプレス化に向けて奮闘中。イラストは練習中でござる



【WordPress奮闘記3】えっとid=postでグループ化ができないんだけど

ループを使って、トップページに3件の記事を掲載する設定にしているんだけど、投稿ごとにグループ化ができない。きっと、divのどこかかがおかしいんだよな。ふむ。

 

<div class="post">
<?php if(have_posts()): while(have_posts()):
the_post(); ?>
<h2><a href=<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p class="postinfo">
<?php echo get_the_date(); ?>
 カテゴリー:<?php the_category(' ,'); ?>
</p>
<?php the_content(); ?>
<?php endwhile; endif; ?>
<?php  if(is_home()): ?>
<?php endif; ?>

<p class="pagelink">
<span class="oldpage"><?php next_posts_link('&laquo; 古い記事 '); ?></span>
<span class=newpage"><?php previous_posts_link('新しい記事 &raquo;'); ?></span>

</div>

 

青い枠を記事別に囲いたい。。

f:id:orange7700:20130402001234p:plain

でも、だんだんそれっぽくなってきたでしょ?