Forums Forums Search & Filter Pro way to search for ACF Date field entries that are on or after search date field?

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Trevor
    #224832
    This reply has been marked as private.
    Anonymous
    #224917

    Having trouble figuring out how to target the “TO” field with JS, since it’s id changes every time the page loads.

    Also, I looked in the inspector in Chrome, but had trouble finding your JS for this.

    If there’s any way you could post that JS function here, that would be awesome.

    Anonymous
    #224919

    Actually, I’ve got the JS to fill in the “TO” field working. But testing it, it does not work. What should I set as the “End Key” for the date picker form element? I think this is where the problem lies.

    Anonymous
    #224925

    Okay, figured it out. The solution was:

    change “Start meta Key” to “start_date” field name, and then change “End meta Key” to “_start_date” field name. Not sure why this works exactly, but it does.

    Trevor
    #224931

    If these are ACF fields, that doesn’t sound right. Both should be set to start_date

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