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. How To Change Categories Display In A Particular Post Of WordPress Blog? Hello All, In order change categories display in a particular...
  4. How To Display Post Timiing In WordPress Blog? Hello All, In order to display time details in post...
  5. How TO Display Latest Author Who Has Modified The Post In WordPress Blog Hi, WordPress 2.8+ has new feature of the_modified_author() which allows...

Leave a Reply

You must be logged in to post a comment.