Support » Plugin: Custom Content Shortcode » ACF Date field not able to filter

  • Hi all –
    I think i’m following the instructions correctly. I have a custom date field called reading_date. I’m just trying to filter out posts based on that field. But as a test i have only two posts. One has the date 2016-12-08 and the other has 2016-11-25. I’ve tried many iterations of the filtering parameters but nothing seems to filter correctly. It either shows both at the same time or neither. For instance:

    [loop type=salon_reading acf_date=reading_date compare=less value=2016-12-01]

    Shows none.

    [loop type=salon_reading acf_date=reading_date compare=more value=2016-12-01]

    Shows both.

    Any thoughts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey, dmasonc4,

    ACF saves two separate keys (see here). Make sure you are using the correct one.


    Thanks, MrFoxTalbot. Checked it out but i am using the correct field. If i test by inserting [field acf_date=reading_date] it displays the date. Any other thoughts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ACF Date field not able to filter’ is closed to new replies.