Skip Navigation

[Resolved] Sorting Controls Not Changing with multiple options

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by christineK 1 year, 6 months ago.

Assisted by: Minesh.

Author
Posts
#2612047
Screen Shot 2023-06-01 at 4.19.03 PM.png
Screen Shot 2023-06-01 at 4.18.54 PM.png

Hello,
We are having trouble with our sorting control not working correctly within our view. See below for explanation of how it's setup.

We have two options available within our Sorting Control:
1. First Name (which uses the Post Title in Asc order)
2. Last Name (which uses a Custom Field in Asc order)

By default we have it set to show by Last Name.

When we click the Sort By dropdown and select "First Name" the screen flashes like it's doing something but the view does not change/update. It is not working. Can you help us understand what is wrong with our settings?

I've attached screenshots to show what we have setup and a link to the page can be accessed here: hidden link

Thank you.

#2612161

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I hope you followed the following Doc that will show you how to add sorting controls and use it.
- https://toolset.com/course-lesson/creating-a-custom-search/#add-front-end-sorting-to-search-results

Have you already followed the above doc? if yes:
- I see you have added the primary and secondary sort order for your result where you posts will be primary sorted with Last name and secondary sorted with post title by default. If you do not need secondary sorting you should set it to none.

#2612255

Minesh,

Yes, I have followed those instructions as you can see per the screenshots attached, those are the settings for the sort control in my view. But they are not working. Can you advise what is wrong so we can correct it? I can also provide you with access to the site for further investigation as well.

#2612363

My issue is resolved now. Thank you!