Sort with acf fiel type : number doesn’t work

Forums › Forums › Search & Filter Pro › Sort with acf fiel type : number doesn’t work

Viewing 10 posts – 1 through 10 (of 13 total)
  • Anonymous
    #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 you

    Trevor
    #267918
    This reply has been marked as private.
    Anonymous
    #267939
    This reply has been marked as private.
    Trevor
    #267943

    Ah, OK, can you set the Date field as a Post Meta like this and then hit the Browse button as shown with the arrow (see screenshot below), and screenshot the popup screen?

    https://www.screencast.com/t/gp0TAIvv7Gl

    Anonymous
    #267948
    This reply has been marked as private.
    Trevor
    #268028

    Ah, 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
    #2 field_52f0fc4334f52
    #3 land

    In 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.

    Anonymous
    #268061

    Ok here is the screen capture with “key#3”

    Trevor
    #268186
    This reply has been marked as private.
    Anonymous
    #268197
    This reply has been marked as private.
    Trevor
    #268336
    This reply has been marked as private.
Viewing 10 posts – 1 through 10 (of 13 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.