Having this issue too, using the Basic loop (without setup_postdata). Field is 100% set up as Post Object, and I’m able to get the title using:
<?php echo get_the_title( $p->ID ); ?>
but unable to get the content using:
<?php echo get_the_content( $p->ID ); ?>
This is a feature I’d also like to request.
If anyone else is looking for a solution to removing <p> tags from around images, in the ACF WYSIWYG editor, just use the following code in your functions:
function filter_ptags_on_acf_images($acfcontent){
return preg_replace('/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(\/a>)?\s*<\/p>/iU', '\1\2\3', $acfcontent);
}
add_filter('acf_the_content', 'filter_ptags_on_images');
You’re an inspiration Elliot. Your first class customer service is paralleled only by the amazing plugin you’ve created.
Its individuals like yourself that’re moulding and shaping the internet. A true pioneer.
Many thanks.
Any chance that someone is able to take the code in the first reply, and relate it to the code in the original ticket? I have the same issue (shared server and unable to update the PHP version), so need to be able to output the date in a standard dd/mm/yy format.