Title: Sort SearchResult By Title
Author: Emerson Maningo
Published: <strong>10 February 2009</strong>
Last modified: 28 November 2025

---

Search plugins

![](https://s.w.org/plugins/geopattern-icon/sort-searchresult-by-title.svg)

# Sort SearchResult By Title

 By [Emerson Maningo](https://profiles.wordpress.org/codex-m/)

[Download](https://downloads.wordpress.org/plugin/sort-searchresult-by-title.11.0.zip)

 * [Details](https://en-gb.wordpress.org/plugins/sort-searchresult-by-title/#description)
 * [Reviews](https://en-gb.wordpress.org/plugins/sort-searchresult-by-title/#reviews)
 *  [Installation](https://en-gb.wordpress.org/plugins/sort-searchresult-by-title/#installation)
 * [Development](https://en-gb.wordpress.org/plugins/sort-searchresult-by-title/#developers)

 [Support](https://wordpress.org/support/plugin/sort-searchresult-by-title/)

## Description

One of the common problems in commercial sites powered by WordPress is the desire
to sort search results by post title. For example, if you are selling songs online

and using WordPress, you may need to sort songs from the best to the lowest ratings
in the search results. The objective is that any visitor will end up listening the
best songs first and will increase the chances of buying the music.

Using PHP, average song ratings of the song post can be incorporated in the title
for more user-friendly approach (potential music buyers) will know the song ratings.

Using “WordPress Sort Searchresult by Title”, when someone do a search using wordpress
search box, all those songs can be alphabetically listen in descending order (highest
to lowest).

Other applications include a dating site using wordpress. Say someone would need
to search names, it is appropriate to give results alphabetically listed so that

the search names can be located faster.

Currently the existing WordPress search result algorithm will only sort post by 
date. This is only useful for blogging, complex applications of WordPress sometimes
need search results
 to be sorted by post title. There are numerous applications
that this plugin can be used including a online bookstore powered by WordPress. 
And this can be easily done bysorting of WordPress Search Result by Title plugin(
to sort the book titles or by book review ratings).

For inquiries, support and technical clarifications about this plugin, please visit
the [PHP developer website](http://www.php-developer.org).

## Screenshots

[⌊The menu settings as shown in Wordpress admin panel.⌉⌊The menu settings as shown
in Wordpress admin panel.⌉[

The menu settings as shown in Wordpress admin panel.

[⌊This is the search result using ascending settings of title tag.⌉⌊This is the 
search result using ascending settings of title tag.⌉[

This is the search result using ascending settings of title tag.

[⌊This is the search result using descending settings.⌉⌊This is the search result
using descending settings.⌉[

This is the search result using descending settings.

## Installation

 1. Upload `Sort_SearchResult_by_Title.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to Settings and find Sort Search Results by Title menu. The default setting 
    is Ascending. You can select either to sort the title by descending or ascending
    order.Click save changes.

## FAQ

### How to configure this plugin?

After upgrading the plugin to its latest version, you can now configure the sort
settings for your search by logging in to WordPress admin. And then go to Settings–
Sort Search Results by Title.

### Is this plugin compatible with other plugins?

Probably yes. There is still no guarantee that this plugin will work with other 
plugins. This plugin takes control of the WordPress search. If you have other plugins
that also controls WordPress search. It is possible that this will be a cause of
conflict.Test thoroughly before using this plugin in a production setting.

### What if I would like to add some features?

If you want to add some features, contact the author. Your feature will be incorporated
in the next release if it is a popular request.

### There is an error when I enable the debug mode in wp-config.php or the plugin is not working as intended?

Deactivate the current plugin you are using, then delete it in your server. Do a
fresh install of the latest plugin version. Activate, that should fix the issue.

## Reviews

There are no reviews for this plugin.

## Contributors and Developers

“Sort SearchResult By Title” is open source software. The following people have 
contributed to this plugin.

Contributors

 *   [ Emerson Maningo ](https://profiles.wordpress.org/codex-m/)

[Translate “Sort SearchResult By Title” into your language.](https://translate.wordpress.org/projects/wp-plugins/sort-searchresult-by-title)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/sort-searchresult-by-title/),
check out the [SVN repository](https://plugins.svn.wordpress.org/sort-searchresult-by-title/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/sort-searchresult-by-title/)
by [RSS](https://plugins.trac.wordpress.org/log/sort-searchresult-by-title/?limit=100&mode=stop_on_copy&format=rss).

## Change Log

#### 11.0

 * Compatibility for WordPress version 6.3+
 * Added nonce check on form submission.

#### 10.0

 * Compatibility for WordPress version 5.0+
 * Fixed PHP notices.

#### 9.0

 * Compatibility for WordPress version 4.4.
 * Fixed PHP notices.

#### 8.0

 * Compatibility for WordPress version 3.5.

#### 7.0

 * Correct another $wpdb error that will appear only if debug mode is set to true

#### 6.0

 * Correct some important bugs pertaining to headers output sent early
 * Correct some bug pertaining to $wpdb

#### 5.0

 * Added a function to automatically upgrade and create database if upgrading to
   version 5
 * Added a database version of the plugin.
 * Fix and stabilize some global variables to ensure compatibility with installed
   database.

#### 4.0

 * Added a function to delete the database table after deactivation.
 * Revised the Readme text.

#### 3.0

 * Test the plugin for compatibility from WordPress version 3.1.1 to latest 3.4.1
   as of July 2012.
 * Added a menu for settings.

#### 2.0

 * A revision to correct spacing errors in the PHP script to work with the latest
   wordpress 2.8.2
 * Users starting WordPress 2.8.2 SHOULD use this plugin version 2.0
 * If there are warning headers sent already error in php as observed in earlier
   version before 2.8.2, use plugin version 2.0

#### 1.0

 * The original version.

## Meta

 *  Version **11.0**
 *  Last updated **11 months ago**
 *  Active installations **100+**
 *  WordPress version ** 3.7 or higher **
 *  Tested up to **6.9.11**
 *  Language
 * [English (US)](https://wordpress.org/plugins/sort-searchresult-by-title/)
 * Tags
 * [post title](https://en-gb.wordpress.org/plugins/tags/post-title/)[search result](https://en-gb.wordpress.org/plugins/tags/search-result/)
   [wordpress search](https://en-gb.wordpress.org/plugins/tags/wordpress-search/)
 *  [Advanced View](https://en-gb.wordpress.org/plugins/sort-searchresult-by-title/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/sort-searchresult-by-title/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/sort-searchresult-by-title/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/sort-searchresult-by-title/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/sort-searchresult-by-title/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/sort-searchresult-by-title/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/sort-searchresult-by-title/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/sort-searchresult-by-title/reviews/)

## Contributors

 *   [ Emerson Maningo ](https://profiles.wordpress.org/codex-m/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/sort-searchresult-by-title/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://www.php-developer.org/)