Skip Navigation

[Closed] Views: order of filter options (wpv-relationship-filter)

This support ticket is created 4 years 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 5 replies, has 2 voices.

Last updated by Luo Yang 4 years ago.

Assisted by: Luo Yang.

Author
Posts
#2141221
Bildschirmfoto 2021-08-12 um 17.34.29.png
Bildschirmfoto 2021-08-12 um 17.34.41.png
Bildschirmfoto 2021-08-12 um 17.35.05.png

Tell us what you are trying to do?

Display a view of all "available downloads". Filter (dropdown) the view using categories and a relationship-filter (page <-> download). Order the options in the relationship-filter-dropdown other than "by id / descending".

Choosing other "order by" parameters or entering them in the shortcode yields no effects - the dropdown is always ordered in the same way (by page-id).

How do I get this to order at least alphabetically by page title - or even better: customizable order?

What is the link to your site?

hidden link

Thank you very much 🙂

#2141705

Hello,

I assume we are talking about the shortcode [wpv-control-post-ancestor] your screenshot:
https://toolset.com/wp-content/uploads/2021/08/2141221-Bildschirmfoto_2021_08_12_um_17.34.29.png

The shortcode [wpv-control-post-ancestor] should display the options in "Post title Ascending" order by default.

So the problem you mentioned above is abnormal, I have tried it in my localhost with a fresh WP installation + the latest version of Toolset plugins, it works fine. Please check these:
1) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

2) In case it is a compatibility problem, please deactivate all other plugins, and switch to WordPress default theme 2021, deactivate all custom PHP/JS code snippets, and test again

#2141835

Hello and thank you for the fast response,

Deactivating all other plug-ins resolved the issue and I could pinpoint it to WPML being activated. Once deactivated, the ordering works as intended. Unfortunately we need the page to be multi-lingual 😉

Is it possible to order the filter items using a custom numerical field which I could add to the pages? Like "Product Order" 1 to X - and then sort the filter items by "page.product_order: ascending"?

The importance of the customer's products is not alphabetical and that would be the perfect solution.

Thank you so much,

Cheers

#2143365
orderby3.JPG

For the new question:
Is it possible to order the filter items using a custom numerical field which I could add to the pages?

No, there are only few option you can choose, see my screenshot orderby3.JPG, it does not support custom fields

#2144517

Well this is quite unfortunate.

Is there a possibility to make Toolset and WPML compatible in this case?

#2145457

Toolset plugins should be compatible with WPML plugins, and I have tried it in my localhost with a fresh WP installation + the latest version of Toolset plugins + WPML plugins, it works fine, the relationship filter dropdown menu display the options in correct order.

So the problem you mentioned above is abnormal, please please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, also point out the problem page URL and view URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

The topic ‘[Closed] Views: order of filter options (wpv-relationship-filter)’ is closed to new replies.