function posts_list_view($query, $page_titile) { ?> <div id="archive"> <h1 class="title-font"><?php echo $page_titile; ?> </h1> <?php get_nav_cat_template(); ?> <?php if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); ?> <article> <ul> <li class="archive-in"> <a class="link-block" href="<?php the_permalink(); ?> "> <time class="small-font" datetime="<?php the_time('c'); ?> " pubdate=""><?php the_time('Y年n月j日'); ?> </time> <h2 class="huge-font"><?php title_limit(); ?> </h2> </a> </li> </ul> </article> <?php } } wp_reset_query(); wp_reset_postdata(); ?> </div> <?php }
<article> <div class="archive-in"> <a class="link-block" href="<?php the_permalink(); ?> "> <time class="small-font" datetime="<?php the_time('c'); ?> " pubdate=""><?php the_time('Y年n月j日'); ?> </time> <h2 class="huge-font"><?php title_limit(); ?> </h2> </a> </div> </article> <?php } } wp_reset_query(); ?> </div><!-- archive -->