WordPress.org

Forums

Listing last posts in sidebar probl. (2 posts)

  1. exzrael
    Member
    Posted 10 years ago #

    I want to list my latest (say 20 latest) posts in the sidebar as I could before WP1.5 but now I can't. How am I able to do this? By using the code here? It didn't work...

      <?php wp_list_pages('sort_column=time_created&show_date=created'); ?>
  2. Avenir
    Member
    Posted 10 years ago #

    wp_list_pages lists Pages, not posts. You want get_archives. Read it's documentation here.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.