Forums Forums Search & Filter Pro can't filter posts by ACF date field

Tagged: 

  • This topic has 6 replies, 2 voices, and was last updated 8 years ago by Anonymous.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Anonymous
    #167010

    Hello,

    I tried everything, and when I search by ACF date, I get 0 returns.
    http://site.funambulesmedias.org/

    In ACF, I have this format : DD, d MM yy­. I need this format. But I tried to put a standard format yyyymmdd or yymmdd and it didn’t work more.

    When I use categories or tags it works fine. But the date just doesn’t do it.

    Can you please help ?

    Anonymous
    #167011

    My dates are under projections in the posts singles.

    Trevor
    #167064

    To be able to work in a range search, the dates must be all in the YYYYMMDD format, even ones you have already input (they would have to be re-saved). They can be displayed to the user in any format you want to select in ACF, it is just the saved format that is important. I think you have to enter the format in ACF as Ymd (but I could be wrong, so please check).

    Anonymous
    #167211

    Thanks Trevor !

    It just doesn’t seem to do it, I tried every format. dd/mm/yy as it is in Search and filter. YYYYMMDD just writes 201820180308… and it doesn’t work. Ymd writes Y38.
    I tried changing my php files format. Isn’t there a way to check the saved format of the ACF field ? And what format does Search and filter ask for ? because it says YYYYMMDD (ACF) but my acf does not have that format by default. I have Version 4.4.12 of ACF plugin.

    I am also set in French so that might not help.

    If you can help, it would be appreciated, I have to manage three different date fields so I am only starting to code that.

    Thanks.

    Trevor
    #167254
    This reply has been marked as private.
    Anonymous
    #168066
    This reply has been marked as private.
    Anonymous
    #168153
    This reply has been marked as private.
Viewing 7 posts - 1 through 7 (of 7 total)