Forums
Home / Fixing WordPress / Custom query orders posts improperly
(@thenameisnick)
14 years, 7 months ago
I have a custom query that sorts my a numeric meta_value in DESC order.
The problem is that it seems to be ordering based on the first digit of a number first and then second etc.
For example, a numeric value of 3 is ranked greater than a numeric value of 29.
Any suggestions?
(@mrkingid)
13 years, 10 months ago
you need to input custom variable with an added 0.
eg:
01 02 03 04 05 06 07 08 09 10 11 . . etc