Skip Navigation

[Resolved] Change Sorting order of custom search by URL-Parameter?

This support ticket is created 3 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Shane 3 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#2074841

a.R

How do that?

THX 🙂

#2075249

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for getting in touch.

This is possible to do, however not sure why you would want to sort the items using a URL parameter when we have the option to have frontend sorting control.

Perhaps providing a bit more details will allow me to understand your exact use case a little better because as it stands it would be more efficient to use the frontend sorting controls that our views search provides.

Thanks,
Shane

#2075513

a.R

Please believe me, we want to do it with URL-parameter, not with frontend. So please how can we do it?

Thank you 🙂

#2076173

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

It can be tricky to achieve this however our views plugin accept these items as parameters in the url for sorting.
<codE>

wpv_sort_orderby
wpv_sort_order
[/php]

The orderby parameter should have the slug of the field, the sort_order should specify whether it is ASC or DESC.

Please let me know if this helps.
Thanks,
Shane