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 🙂
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
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
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
Well this is quite unfortunate.
Is there a possibility to make Toolset and WPML compatible in this case?
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/