Home Forums Front-end Issues Show posts between two dates Reply To: Show posts between two dates

  • k, now that I’m looking back at this, you want to do a date query on post dates based on your values.

    Sorry, ignore my last comment. What you need to do is format the date returned by ACF to a full MySQL date. You return format from ACF should be “Y-m-d”.

    I’m not 100% sure that will work because post dates are stored as “Y-m-d H:i:s”, so you’ll need to test, but I can’t think of any reason that the query would not work without the time.