Cat + Tag Filter
[resolved] Filter Results Sorted by Title Alphabetically (2 posts)

  1. Gary Thayer
    Posted 3 years ago #

    Is it possible to have filter search results sorted by title alphabetically? Currently, it appears to be sorted in order of post creation.


  2. Gary Thayer
    Posted 3 years ago #

    I was able to find a solution. By replacing my themes's archive.php (Other themes might use category.php) loop function with the code below. Replace 'Category' with the name of the category you would like sorted alphabetically by title.

    // we add this, to show all posts in our
    // Glossary sorted alphabetically
    if (is_category('Category'))
         $posts = query_posts($query_string .
    // here comes The Loop!
    if (have_posts()) : while (have_posts()) : the_post(); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Cat + Tag Filter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.