=== Plugin Name === Contributors: codex-m Donate link: http://www.php-developer.org/ Tags: search result, post title, wordpress search, sort search result by title Requires at least: 3.7 Tested up to: 4.4 Stable tag: 9.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Wordpress sort search results by title offers powerful option for developers to sort search results alphabetically in ascending or descending order. == 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. == Installation == 1. Upload `Sort_SearchResult_by_Title.php` to the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. 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. == Frequently Asked Questions == = 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. == Screenshots == 1. The menu settings as shown in Wordpress admin panel. 2. This is the search result using ascending settings of title tag. 3. This is the search result using descending settings. == Changelog == = 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. == Upgrade Notice == = 8.0 = Compatibility for Wordpress 3.5. Please upgrade and report any bugs to the author. Thanks. = 7.0 = Fix a minor bug associated with $wpdb that appears only when debug mode is set to true. = 6.0 = It is highly recommended to upgrade to this version for full stability. = 5.0 = If you are using version 2 to version 4, please upgrade to version 5 because this will fix the problems in old versions that don't update the database table automatically during an upgrade. = 4.0 = Upgrade to this version. This will have the capability to delete the sort search result database table after some deactivation. = 3.0 = Upgrade to use the latest version. This is compatible with latest Wordpress version and has a user friendly menu to configure settings. = 2.0 = This version fixes a bug resulting to fatal error when executed. Upgrade immediately.