My notes and thoughts about Linux, WordPress, PHP and many more.
I am beginning to wonder how to sort search results in word press by post titles. There is a plugin below.
query_vars['orderby'] = 'title'; $k->query_vars['order'] = 'DESC'; } } ?>
1. Download the plugin here.
2. Upload to wp-content/plugins directory in wordpress
$k->query_vars['order'] = 'ASC';
If you have problems with the plugin contact the developer.
It appears this plugin is not compatible with WP 3.5. It’s giving me errors all over the place. When I disable the plugin WP 3.5 works fine.
I’m on the process of updating this plugin for the WP3.5. Thanks.
I would like to use this plugin but just updated to wordpress 3.5 and now receive an error message when I try to use it.
“The plugin generated 355 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.”
“Warning: Missing argument 2 for wpdb::prepare(), called in … on line 137 and defined in …/wp-includes/wp-db.php on line 990”
I’m on the process of updating the plugin for WordPress 3.5 compatibility. Thanks.
Hi I was wondering how you would alter the code to use custom fields like price. I tried to simply change title to price in the php file however it didnt work. Any Suggestions are greatly appreciated.
Thanks, Mike !
Thanks for the feedback, I have now fixed this problem . Can you please remove the old version and download the version 2 (which is working for WP2.8.2)
This is the link: Download Version 2 of the WordPress Sort search result by Title.
I would like to use this plugin but it is causing error message on my site (v.2.8.2) like this one:
Warning: Cannot modify header information – headers already sent by (output started at /home/XXXX/public_html/XXXX/blog/wp-content/plugins/sort-searchresult-by-title/Sort_SearchResult_by_Title.php:21) in /home/XXXX/public_html/XXXX/blog/wp-includes/pluggable.php on line 865
Any ideas? Thanks!
Hi Maxim, sorry but I cannot understand Russian language. Can you translate it to English please? Thanks.
???, ??????, ? ?????? ??? ? ??? ?? ?????, ?? ????? ??????, ??? ??? ????? ???????????