Skip Navigation

[Resolved] Toolset Views order by custom field not working in different languages WPML

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

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 2 replies, has 2 voices.

Last updated by tomaszW-2 3 years, 7 months ago.

Assisted by: Jamal.

Author
Posts
#2009141
Screenshot_2021-04-03 View karty belek transport en new2 FI - Antalex - laadukas kunnostettu taka-akseli.png
Screenshot_2021-04-03 View karty belek transport en new2 - Antalex - Regeneracja tylnej belki.png

I am trying to:

have View with elements sorted by Custom Field.

Link to a page where the issue can be seen:

Polish (originial) is OK
hidden link

in Finish order is wrong
hidden link

I expected to see:

Order like in polish language.
Sorting is by Custom Number Field. This field is displayed on right as a number.

Instead, I got:
Wrong order of elements.

By elements I mean those cards with image of car, price etc. Order of this cars should by by number on right. See differenc in attachement.

#2009205

Hello and thank you for contacting the Toolset support.

I suspect that the custom field is not available in the secondary language. This can happen if the custom field is not translated nor copied to the second language. Please check this WPML article on custom field translation https://wpml.org/documentation/getting-started-guide/translating-custom-fields/

If that's the case, configure the field to be copied (option "Copy", not "Copy once"). Then, update the posts in the original language to force WPML to copy the field values. You can do that, by visiting each post on the backend and just click on update. Or using the bulk edit option the post type list view. Select all posts, and click on edit. Then just click on save.

If this does not help, I'll need to check this on the backend closely. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **

#2009215

I spent couple hours before but now I found problem - another plugin which overrides order.
Thanks again.