[Resolved] Order of translated items in a drop down select field
This support ticket is created 2 years, 2 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.
We have a custom field COUNTRY which has a list of 36 countries as options for a drop down field.
The cred_field is displayed on the form "Post Form - New Native Nanny User"
When viewing the drop down in English, the Countries appear in the desired order, with Germany as 1 and the rest sorted alphabetically.
When viewing in German, however, the list is no longer ordered alphabetically, rather the order follows the alphabetisation of the English names (see screenshots).
I can get Germany to always display first by using the default option, so that's not a problem. Is there a way to have the German list sort alphabetically in German too? Something like " order by Display Text ".
Actually they are ordered in the way the field was created. Even when you switch the language that same order will remain in which the field was created.
The only way I can see the order changing is if you use some form of custom javascript to change the order on the frontend, however this javascript will run on both the English and German version of your site.
OK, that's a shame that we cannot influence the sorting in German. It's only a few countries that begin with a different letter in German, so I guess we can live with it.
On a side note, the drop down fields are appearing strangely throughout our site (see screenshot) with the arrow appearing way too high the field and the field size is different from all other fields - any ideas what has influenced that negatively? Previously they all looked good with the same size and the drop down arrow was centred right in the field as it should be.
I narrowed it down to WooCommerce plugin, as soon as it's activated the incorrect displaying of the fields occurs. So I guess I'll follow up with WC Support/Asta theme support.