Meta Value Not Working as Expected

Forums › Forums › Search & Filter Pro › Meta Value Not Working as Expected

Viewing 4 posts – 1 through 4 (of 4 total)
  • Anonymous
    #204514

    Hi, I have a field updated_on that I’d like to sort my posts by but no matter what I do it seems to not work. The field is currently a date field and looks like this (for ex.): 2017-12-04 14:43:50

    How do dates need to be formatted for this to work correctly; eg have them be ascending/descending? Will follow up with more info as I can’t hide info on initial post. Thanks

    Anonymous
    #204515
    This reply has been marked as private.
    Trevor
    #204564

    Dates need to be date only, not date/time, and in the format YYYYMMDD (in ACF, this is normally the Ymd format). Dates in the format you have suggested that field is using will not work.

    Anonymous
    #204634
    This reply has been marked as private.
Viewing 4 posts – 1 through 4 (of 4 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.