Support Forums

Hey there, it looks like you've been redirected from designsandcode.com - as you can see we have a new home - read more

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro cant filter posts by ACF date field

Viewing 10 posts - 1 through 10 (of 19 total)
  • yossi ben david
    #136186

    Hi there,
    i am using ACF to create a custom field for dates, i have created 2 custom date field (“start date” and “end date”)

    i want users to be able to filter all post by “start date” (my custom field created with ACF)
    i already published several posts with different dates yet when i try to filter my search by my custom date field i always get 0 results.

    A. i have made sure to set the date format to be the same in ACF and in “Search and filter pro”
    B. i have made sure i have published posts with the “start date” i am searching for.

    ——- why cant i filter posts but my custom date field? (i always get 0 results) ——

    here are the full steps i have taken:

    1. i have created a date picker custom field with ACF.

    2. i have created several post and added to them a value for the “start date” field created with ACF.

    3. with “Search and filter” pro i have created a new “search form ui”
    4. i have added the relevant short code to my page and i do see the serach form and the results.

    4. i have added to the “search form ui” a “post meta” field.

    5. i have chosen my custom field (“start date”) in the “Start Meta Key” field inside the “date” tab

    6. in “Search and filter pro” i have chosen to display my results using short-code

    7. when i enter the page by default i see all posts (as i didn’t added anything to my search filter)

    8. i chose a “start date” that i know is included in one of my posts.

    9. i never see any results, the search query return with 0 results even tho i have several posts with the same value for the custom “start date” field.

    yossi ben david
    #136204

    i have the same problem,
    i use “regular” ACF and also create a “date picker” field.

    1. i have made sure to use thae same date format in ACF and in “search and filter pro”
    2. i have made sure i am using the correct “Start Meta Key” (the one that is set in ACF)

    yet, i always get 0 result…..

    can you please help?

    Trevor Moderator
    #136214
    This reply has been marked as private.
    Trevor Moderator
    #136218

    I have merged these two threads together, as they seem the same.

    yossi ben david
    #136224

    as for now i am working on a local env….(using xammp).
    would you like me create a live Env and sent you the credentials?

    yossi ben david
    #136241
    This reply has been marked as private.
    Trevor Moderator
    #136256
    This reply has been marked as private.
    Trevor Moderator
    #136264
    This reply has been marked as private.
    Trevor Moderator
    #136268
    This reply has been marked as private.
    yossi ben david
    #136272

    I have change the date format to yymmdd but still i have the same issue…
    BTW – feel free to make any changes you want as the site is not live….

Viewing 10 posts - 1 through 10 (of 19 total)

The topic ‘cant filter posts by ACF date field’ is closed to new replies.