Home › Forums › General Issues › Wysiwyg field not displaying in the blog post. › Reply To: Wysiwyg field not displaying in the blog post.
If you want to insert shortcode and have it show on the front end, use a Text field and then use this in your template:
<?php $shortcode = get_field( 'your_text_field' ); ?>
<?php echo do_shortcode( $shortcode ); ?>
That’s how I do it. The WYSIWYG field will strip out shortcodes.
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.