Forums

Show date item with wp_get_archives (2 posts)

  1. janbanan
    Member
    Posted 4 years ago #

    Hi, I've been trying to show the date for each post in the list created by the function "wp_get_archives". However I can't find date as an argument to the function - I've also tried to solve this with the <?php the_date('Y-m-d'); ?> but I just can't seem to get it right.

    I found the argument "after" but didn't manage this time either and finaly I tried to alter the function in general-template.php so to say "in the loop" when elseif = postbypost - again with no luck :-(

    I should let you know I completely new to WordPress :-)

    Anyone has a clue as to how to show the date (published) alongside each and every item in the list.

    Thank in advance

    PS. Om my test page you can better see what I mean: http://www.froden.com/news

  2. moshu
    Member
    Posted 4 years ago #

    As you saw - that template tag does NOT have date parameter, so stop using it.
    Get a custom mini-Loop.

Topic Closed

This topic has been closed to new replies.

About this Topic