Forums › Forums › Search & Filter Pro › Sort with acf fiel type : number doesn’t work
- This topic has 12 replies, 2 voices, and was last updated 5 years, 10 months ago by
Trevor.
-
Anonymous(Private) November 26, 2020 at 11:10 am #267911
Hello,
I would like the results of my search to be sorted in ascending order using an ACF field of type number. There are negative numbers for example “-200” and also positive numbers.
I set “default order” on this field but it doesn’t work …
Can you help me
Thank youTrevor(Private) November 27, 2020 at 10:23 am #268028Ah, that ‘date’ field is the wrong one. Notice the name starts with an underscore?
Note that, with fields made by ACF, when selecting the meta key, note a ‘gotcha’ with ACF ….
… it makes 3 meta keys per field, like this (in this example for a field named ‘land’):
#1
_land
#2field_52f0fc4334f52
#3landIn our Meta Key selection list, you need to use key #3, without the underscore at the start of the key name. If you choose #1 by mistake, in the field choices you will see the name of #2.
-
AuthorPosts
