PHP Developer

My notes and thoughts about Linux, WordPress, PHP and many more.

  • March 14, 2009

    WordPress Sort Search Result by Title Plug-in

    I am beginning to wonder how to sort search results in word press by post titles. There is a plugin below. Readme/ Instructions: 1. Download the plugin here. 2. Upload to wp-content/plugins directory in wordpress3. Activate the plugin. 3. So everytime there is a search query made in wordpress, it will sort alphabetically in descending or ascending order. To sort post titles by ascending order, change the last line to: $k->query_vars[‘order’] = ‘ASC’; If you have problems with the plugin contact …