Query_post – date
-
I am making query_posts to display three subpages on my homepage and problem is that it displays DATE only in first item.
<?php query_posts("posts_per_page=3&post_type=page&post_parent=27"); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="test"> <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4> <p class="date"><?php the_date('Y-m-d'); ?></p> </div> <?php endwhile; ?> <?php endif; ?> <?php wp_reset_query(); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Query_post – date’ is closed to new replies.