Hi,

WordPress organizes and displays posts in descending chronological order: newest first, oldest last. Sometimes, you might want to list posts in alphabetical order. Using different templates in WordPress, you may implement post listings in an alternative manner.

If you want to list all your posts alphabetically on the main page then edit your theme’s index.php:

// Add this to show *all* posts sorted alphabetically by title
$posts = query_posts($query_string . '&orderby=title&order=asc&posts_per_page=-1');
// here comes The Loop!
if (have_posts()) : while (have_posts()) : the_post(); ?>

That’s it!

Thanks,

Shane G.

Popularity: 18%

Related posts:
  1. How To Display Popular Post In Wordpress Blog Hi, Sidebar is a very good element of the blog...
  2. How To Change Post Display Order In Wordpress blog? Hello All, By default theme post display order is set...
  3. What Is The Difference Between Posts And Pages In WordPress Blog? Hello All, There is no limit on the number of...
  4. How To Set Different Style For Latest Post In Wordpress Hi, You can find many blogs which has assigned special...
  5. How To Display Sidebar At Index Page For Single Post? Hello All, In order to display sidebar at index page...

Leave a Reply

You must be logged in to post a comment.