• I’m using this code <?php get_recent_posts(); ?> for my latest headlines, now I want to have the date displayed after the post at the same line.. Can anyone help me?

Viewing 1 replies (of 1 total)
  • This works for me
    It returns the format:
    Month, Day
    Headline
    Month, Day
    Headline
    <?php $posts = get_posts('numberposts=20'); foreach ($posts as $post) { start_wp(); ?>
    <?php the_time('F j'); ?>
    "><?php the_title(); ?>
    <?php } ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Date in Headlines’ is closed to new replies.