php the_date doesn´t work (4 posts)

  1. Madcore
    Posted 10 years ago #

    In the frontpage of my WP I put some diferents loops to show the last post on some categories, and I put this in that way:

    ?php $posts = get_posts('numberposts=1&category=5'); foreach($posts as $post) : ?><?php the_title(); ?>. In <?php the_date(); ?><?php endforeach; ?>

    The title of the post shows in the right way, but the date doesn´t appear. Someone knows why that happens? I check the code, and I think I wrote it correctly.

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    try the_time instead ?

  3. moshu
    Posted 10 years ago #

    Just read the bold part in the first paragraph the_date.

  4. Madcore
    Posted 10 years ago #

    Ouch, missed that part. >_<. Sorry.

Topic Closed

This topic has been closed to new replies.

About this Topic