Hi Darren,
So I’ve managed to narrow it down to a piece of code I am using in the repeater template, below is the snippet of the code that is causing the issue:
<?php
$date = get_field('downloads_date', $post->ID, false);
$date = DateTime::createFromFormat('Y-m-d H:i:s', $date);
?>
<p class="date">Updated on <?php echo $date->format('d F Y'); ?></p>
As soon as I comment the above out the template works, basically I’m using an ACF date/time field on the site and need to be bale to remove the actual day and the time on this specific page (they need to appear on other pages), and the above is how I’ve managed to do that, but the Ajax Load More system doesn’t seem to like it after the first 60 items have loaded and I can’t see anything in the php.ini file that would cause this.
This is the entire repeater template markup:
<div class="publications-panel row">
<div class="col-sm-12">
<?php
$date = get_field('downloads_date', $post->ID, false);
$date = DateTime::createFromFormat('Y-m-d H:i:s', $date);
?>
<p class="date">Updated on <?php echo $date->format('d F Y'); ?></p>
</div>
<div class="col-sm-12">
<h3><?php the_title(); ?></h3>
</div>
<div class="col-sm-8">
<div class="copy"><p><?php the_excerpt(); ?></p><a href="<?php the_permalink(); ?>">Continue reading</a></div>
</div>
<div class="col-sm-4">
<p><?php the_tags('', ', ', ''); ?></p>
<ul class="topic-icons">
<?php
$field = get_field('header_icon');
?>
<li>
<i title="<?php echo $field['label']; ?>" class="define <?php echo $field['value']; ?>" data-toggle="tooltip" data-animation="false"></i>
</li>
</ul>
</div>
</div>
A second pair of eyes and any thoughts would be greatly appreciated.
Thanks
Scott