Forums › Forums › Search & Filter Pro › Search by Custom Field Date
Tagged: Search by Cutom Filed as Date
- This topic has 6 replies, 2 voices, and was last updated 10 years, 9 months ago by
Anonymous.
-
Ross Moderator(Private) May 12, 2015 at 10:27 am #17275
Sure just use a “post meta” field, and choose the date option.
The only thing to make sure is that dates are saved like
20150512(YYYYMMDD) otherwise they will not work.Thanks
Ross Moderator(Private) May 12, 2015 at 11:11 am #17279Nope, this is not the WordPress date format, it is the way the date gets saved/stored in the database in the custom post field – it has nothing to do with how it looks to the end user.
I’m not sure how you are creating your date field, but I know you can change the “save format” of date fields in ACF (advanced custom fields) as well as other plugins.
Hope that makes sense.
Thanks
Ross Moderator(Private) May 12, 2015 at 11:14 am #17280(Crossed messages there)….
For the date field, you could try setting “date input format” to “timestamp” or if following my advice above you would set the field to “YYYYMMDD”
-
AuthorPosts