Home › Forums › General Issues › ACF in attachment-single.php › Reply To: ACF in attachment-single.php
Ok, now it’s clearer.
My question would be: if you just need to output text in a WYSIWYG field, why dont you just write the text in the_content() and attach the audio to that field as well? Why two fields?
But try this code and tell me if it works:
<div class="chapo">
<?php the_field('chapo'); ?>
</div>
<div class="content">
<?php the_content(); ?>
</div>
If it doesn’t, can you inspect the html with chrome or firefox and tell me what’s being displayed inside these divs?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.