Displaying date of post on static page issue?
-
Hi there,
I’m trying to display the latest three News posts on the following static page (www.rjt-online.com/wp).
The code I have posted below has worked in that sense, but it isn’t displaying the date. I would like each post to display “Posted on Monday, July 12th, 2010 by admin” (obviously with the correct date for each post) underneath each title.
Any help would be greatly appreciated.
<div id="container"> <span id="archives"> <h3 class="widget-title-left">LATEST NEWS //</h3> </span> <div id="content" role="main"> <?php query_posts('posts_per_page=3&cat=23'); if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( is_front_page() ) { ?> <h2 class="entry-title"><?php the_title(); ?></h2> <?php } else { ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php } ?> <div class="entry-content"> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> </div><!-- .entry-content --> </div><!-- #post-## --> <?php comments_template( '', true ); ?> <?php endwhile; ?> </div><!-- #content --> </div>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Displaying date of post on static page issue?’ is closed to new replies.