It just hangs on the preload screen when I reload the page after updating anything. Can’t even get to an error log!
Tim
I have added the following code to postslider.php (child) :
$date = get_field(‘event_date’ , $entry–>ID);
$date = new DateTime($date);
$output .= “<div class=’custom-details’>” . $date–>format(‘jS F Y’) . “</div>”;
It seems to work until I add a new post or update an existing one, then it just hangs.
Can anyone help please?
Hello Victoria
Yes I have ACF plugin activated and the custom field ‘event_date’ active in the loop-index.php file in the child theme.
The query appears to be ordering the posts by the first two digits only (see ‘Music’) and not date order. So 31 May comes after 30 June. This would suggest that only ‘ASC’ is working and the ‘date’ query isn’t, but I can’t figure out what I’m doing wrong.
Thanks for your help