$myposts = get_posts(‘numberposts=5&order=DESC&orderby=post_date’);
foreach($myposts as $post) :
- “><?php the_title(); ?> <small><?php the_date(); ?></small>
so im trying to post the latest 5 posts with the dates. but the date only appears on the latest ONE post. if i use the_time() instead of the_date(), it shows up on all of them, but the_date() is what i really need. any idea what’s going on?
- The topic ‘posting recent posts with dates’ is closed to new replies.