Forums › Forums › Search & Filter Pro › can't filter posts by ACF date field
Tagged: ACF date
- This topic has 6 replies, 2 voices, and was last updated 8 years ago by
Anonymous.
-
Anonymous(Private) March 20, 2018 at 6:20 am #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 ?
Trevor(Private) March 20, 2018 at 11:42 am #167064To 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(Private) March 20, 2018 at 10:05 pm #167211Thanks 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.
-
AuthorPosts