Skip Navigation

[Resolved] How to add Order by Price (ASC/DESC) and Sort by(price/modified) with property

This support ticket is created 4 years, 1 month 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by Luo Yang 4 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#1883317
search-form-toolset.png

Tell us what you are trying to do?
==> I want to add Order-by-Price(ASC/DESC) and Sort-by(price/modified) with property search form.

Is there any documentation that you are following?
==> https://toolset.com/course-lesson/creating-a-custom-search/
https://toolset.com/documentation/user-guides/views/filtering-views-by-custom-fields/

Is there a similar example that we can see?
==> https://toolset.com/course-lesson/creating-a-custom-search/

What is the link to your site?
==> hidden link

#1883457

Hello,

In the document you mentioned above
https://toolset.com/course-lesson/creating-a-custom-search/
section "1. Creating the custom search form", there is a button "Add sorting", see screenshot:
https://toolset.com/wp-content/uploads/2020/05/toolset-views-custom-search-2.png

With it, you can setup the sorting fields in custom search form.

#1883607

My issue is resolved now. Thank you!

#1883619
backend-scr.png
frontend-scr.png

Hello,

I have added this options and it is showing correctly on backend but when I look it on the front view it simply past the shortcode instead of that field.

Please check attached screenshot:

You can check it here: hidden link

#1883715

Sorry, the Sorting Block must be placed inside View Output, View Search but not inside View Loop, you can not drag it into search form.

I suggest you remove it, and recreate it, then test again.