This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Custom date dynamic filter – only year

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Custom date dynamic filter – only year

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #51903
    YansYans
    Participant

    Hi,
    I have an ACF date field in a CPT.
    I want to add a dynamic filter on that custom date field, a dropdown, that will fetch all the values dynamically, but will display only the year portion of the date.

    The goal is to filter posts from a certain year.

    Is this possible?

    Thanks!

    #51907
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Not out of the box, but very likely possible via a small custom code snippet – but it depends on the exact field type, values and the field name as well.

    If you have a drop-down field setup already, let me know (either via a link or back-end access), I will take a look at how the populated values look like, and go from there.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.