Skip Navigation

[Resolved] I need assistance with sorting control

This support ticket is created 2 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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: Africa/Casablanca (GMT+01:00)

This topic contains 3 replies, has 2 voices.

Last updated by Jamal 2 years, 7 months ago.

Assisted by: Jamal.

Author
Posts
#2185445
Schermata 2021-10-02 alle 12.38.10.png

Tell us what you are trying to do? I need to insert sorting control in this page where there is already a view with a form to filter the posts

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site? hidden link

#2185635

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello and thank you for contacting Toolset support.

You can add the sorting controls in the view. It seems that you are using a blocks based view, check this screenshot for the button to add sorting controls hidden link

The sorting controls need to be placed outside of the loop block, but still within the view's block.

I hope this helps. Let me know if you have any questions.

#2186737

I have tried to insert the controls from the classic editor but I have set the filters that work only when the button is clicked, but I want the order controls to work when they are changed.

#2186815

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

You will need to put the sorting controls between the filters and the end of the search form. Check this screenshot hidden link

If you want the results to update when changing the sorting, you will need to activate it on the view's settings. Choose "AJAX results update when visitors change any filter values". Check this screenshot hidden link

I hope this helps. Let me know if you have any questions.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.