Forums Forums Search & Filter Pro Search by Custom Field Date

Viewing 7 posts - 1 through 7 (of 7 total)
  • Anonymous
    #17272

    Hello,
    is it possible to search by custom field date?
    It works perfectly if you want to search by Post Date, but I need to do now is search by date created as a custom field,
    Any suggestion?
    thanks,
    Best regards

    Ross Moderator
    #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

    Anonymous
    #17276

    Hello,

    thanks for response,

    so I have to change the WordPress Date Format and select the custom post field?

    Is’nt it?

    Best regards,

    Anonymous
    #17278


    Is not working…
    I’m work with Types plugin, that save de date in this format: 1435449600,
    Is it possible to change it editting the plugin?
    thanks,
    BEst regards,

    Ross Moderator
    #17279

    Nope, 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
    #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”

    Anonymous
    #17281

    Solved!
    I selected Timestamp and now is working! 😉

Viewing 7 posts - 1 through 7 (of 7 total)