<?php //記事// ?> <?php query_posts('posts_per_page=4'); ?> <?php if(have_posts()): while(have_posts()): the_post(); ?> <div class="post"> <p class="thumb"> <?php if(has_post_thumbnail()): ?> <?php the_post_thumbnail('thumb80'); ?> <?php else: ?> <img src="<?php bloginfo('template_url'); ?>/images/no_<?php echo get_post_type(); ?>.jpg" alt="画像なし" width="80" height="80" /> <?php endif; ?> <h4><a title="この情報をみる" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4> </div> <!-- .post --> <?php endwhile; endif; ?>