Support » Fixing WordPress » Sidebar showing posts change?

  • I am currently using wp_get_archives('type=postbypost&limit=5'); in my sidebar to show my last 5 posts, but it only shows the title of the post. Anyone know how to make it so I can also show the date of the post?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Stupid question, the answer was too easy. I just used the_time('F j, Y');

    soooo, while the_time('F j. Y'); gives me the date like I want, it only does it for the item. I think I need to use for each: item in this but I have no idea how…..anybody?

    if (is_page(‘home’)) {
    echo ”

  • <span class=’head’>LATEST NEWS</span>
  • “;
    echo ”

      echo “<small>posted on: “;
      the_time(‘F j, Y’);
      echo “</small>

    } else {
    echo “<p>Try again</p>”;

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sidebar showing posts change?’ is closed to new replies.