Sauter la navigation

[Résolu] Wrong number sorting with custom field.

This support ticket is created Il y a 4 années et 4 mois. 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)

Ce sujet contient 3 réponses, a 3 voix.

Dernière mise à jour par Puntorosso Il y a 4 années et 4 mois.

Assisté par: Luo Yang.

Auteur
Publications
#1916861

The sorting function in back-end , for a CPT with a price Custom field, doesn't work properly.
It is sorted as a string, even if the Custom Field is a number.

lien caché

I get this behavior:

1000000
130000
200000
3000000
320000

What I'm doing wrong?

#1917085

Hello,

Thanks for the details, I can duplicate the same problem, and have escalated this issue, will update here if there is any news.

#1937869

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+01:00)

Hi there

Luo is away for holidays, let me update you to say that this is fixed in Types 3.4.7, which is now available from `toolset.com/account/downloads.

If you don't see the update from your plugins page, try the Check for Updates button on the Toolset installer page.

#1937953

Yes it works! Thanks