The solution I used for anyone else with the same question.
I enqueued an admin-acf.css file into my theme and used the following CSS to target the flexible content fields:
.acf-fc-layout-handle {
pointer-events: none;
}
.acf-flexible-content > .acf-actions > [data-name="add-layout"],
.acf-hndle-cog {
display: none!important;
}
Hi John,
Thanks for your reply.
I have now solved this issue. As I was trying to access fields associated with a post, I used the ACF get_fields function, using the Post ID as a parameter. Posted my snippet below for anyone interested.
<?php
$singleFields = get_fields($postID);
foreach( $singleFields as $name => $value ) :
?>
<div>
.....
</div>
<?php endforeach; ?>