Reputation: 95
My ACF WYSIWYG field is not displaying formatting on the front end once a post is published.
Screenshot of how it looks in wp admin:
But once this goes live it just goes into a mush of text without spacing. Strong tags seem to stay..
Using this to display the WYSIWYG acf field:
<?php (the_field('description')); ?>
Upvotes: 0
Views: 6253
Reputation: 95
Solved.
It was a tinyMCE setting. For others tick this:
The job descriptions are now formatted at https://workfromhomejobs.me/remote-developer-jobs/
Upvotes: 0
Reputation: 201
Try
the_field('description', false, false);
The third parameter is for format value. You may also check the documentation: https://www.advancedcustomfields.com/resources/the_field/
Upvotes: 1