This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: re-use query sort order as search order with Ajax Search Pro.

Home Forums Product Support Forums Ajax Search Pro for WordPress Support re-use query sort order as search order with Ajax Search Pro. Reply To: re-use query sort order as search order with Ajax Search Pro.

#33595
sensafred31sensafred31
Participant

Thanks,
what I more or less expected 🙂

Anyway, a poor example. I modify the query sort order with a meta-query sort on my custom field views. And I take that from the URL, to make it identical to the URLs for date and alphabetical sort order.
https://sensative.com/use_case_market/smart-building/?orderby=date&order=desc
https://sensative.com/use_case_market/smart-building/?orderby=title&order=asc
https://sensative.com/use_case_market/smart-building/?orderby=views&order=desc

Wordpress is kind enough to manage the re-sort based on the URL and my hack implements the views to function identically as the standard WordPress.
So, if I can make ASP respect the WordPress query on these search results and archive pages I am all done 🙂
Thanks, I’ll continue hacking based on your directions 🙂

BR
Fredrik