Skip Navigation

[Resolved] A randomly displayed view does not change to orderby="id" after filtering

This support ticket is created 3 years, 6 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 – 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/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by erasmusS 3 years, 6 months ago.

Assisted by: Waqar.

Author
Posts
#2122537
Bildschirmfoto 2021-07-22 um 17.57.45.png

Tell us what you are trying to do?
I have set up a view with a number of around 80 people listed randomly on a wp view site.
I have set up a <select>-filter to show these people in their designated category.
In this filter menu i have chosen these settings:

[wpv-control-post-taxonomy taxonomy="teilprojekt" type="select" orderby="id" url_param="wpv-teilprojekt" default_label="Select category" ]

So what i expect is that the randomly "entry" display would change to a given order (orderby="id" , orderby="slug", orderby="name" etc.)

Instead what the filter result is doing: the result is again listed in a random order. The orderby… selection is ignored.
How can i "force" the view to display the filtered result in my chosen listing way?

What is the link to your site?

Since the page is not released yet i would give you the link in a private message if this is possible?
The setup is very basic.

I hope, i could clrearify my issue: please do not hesitate to contact me if you need more info.
Thanks so much in advance for your help and besrt regards,
Rasmus

#2123039

Hi Rasmus,

Thank you for contacting us and I'd be happy to assist.

The 'orderby' attribute value that we pass through the "wpv-control-post-taxonomy" shortcode has no effect on the order of the view's results.

The shortcode "wpv-control-post-taxonomy" is added for the taxonomy search field in the view. This "orderby" attribute only controls the order in which the relevant taxonomy terms are shown in that search field.
( ref: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-control-post-taxonomy )

If you'd like to give visitors ability to change the order/sorting of results from the front-end, you can add the sorting controls in the view, as explained here:
https://toolset.com/documentation/legacy-features/views-plugin/allowing-visitors-to-sort-the-front-end-results/

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#2123187

My issue is resolved now. Thank you!