Thank you James! It works as i needed!
This will help a lot of ACF users.
the only thing i changed is 3,2 into 4,2 at line $theMonth = substr($row['date_field_name'],4 ,2); cause my dates appear as 20160412.
to finalize the code a question, how to echo the dates and title months to show as “pretty”?
i used before $start_date_pretty = date_i18n( 'l, F j, Y', $start_date ); but i don’t see how i can use that in this working code.
Thank you again
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users