Forums Forums Search & Filter Pro Date field by month (January 2020, February 2020, March 2020…)

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #247082

    Hello,

    I know that there is the possibility of using the date range combo fields, but I would like to know if it is possible to have a date combo field per month (eg January 2020, February 2020, March 2020…)?
    Thanks for your help

    Kind regards,
    Eric

    Trevor
    #247217

    Only by creating a custom field with those values in, to match whatever date your post has, which would mean editing existing posts. For new posts, and ones you edit, it is also possible to use PHP in your functions file to access the stored date and ‘calculate’ and set the necessary month/year. This code is not quite the same, but will give you and idea.

    In V3, due in a few weeks, it may become possible to directly do as you ask. This one gets the year:

    https://support.searchandfilter.com/forums/topic/datefilter/page/3/#post-238869

    Anonymous
    #247484

    Thank you for your reply!
    Unfortunately, this is an old site with almost 8000 articles.
    I will wait then for the release of V3, I can wait a few weeks 🙂
    Best regards
    Eric

    Trevor
    #247492

    Thanks for getting back to me. I will close this thread for now.

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