Hello,
I have run into an odd issue where on every WYSIWYG ACF field, while viewing an image attachment page (attachment.php), the attachment image gets inserted into the ACF field.
You can see that happening here:
https://yourvoiceprotected.ca/?attachment_id=1939
What gets inserted to the ACF field:
<div class="address-footer-col1">
<p class="attachment">
<a href="https://yourvoiceprotected.ca/wp-content/uploads/2014/04/PIC_slide03.jpg">
<img class="attachment-medium" width="300" height="85" alt="PIC_slide03" src="https://yourvoiceprotected.ca/wp-content/uploads/2014/04/PIC_slide03-300x85.jpg">
</a>
</p>
<p>
Head office:
<br>
Public Interest Commissioner
<br>
10303 Jasper Avenue NW, Suite 2800
<br>
Edmonton, AB T5J 5C3
</p>
</div>
I have done some testing and, while viewing an attachment.php page, and I have noticed the following things:
-The attachment image is inserted only when it is an WYSIWYG ACF field. Text area ACF fields do no have the problem, as shown by the copyright line in my link.
-This occurs on ‘options’ page fields
-This occurs on ACF fields pulled from other pages IE) get_field( 'mission_statement', 1448 );
-This occurs even if I delete all the code on the attachment.php file, and leave in only the get_header();
and get_footer();
calls. Any ACF WYSIWYG field in the footer or header will still have the attachment image inserted into it.
Any insight or advice would be much appreciated.
Thanks,
Kassandra