ACF Plugin – Using shortcodes in text fields
-
I installed the ACF Plugin for WordPress and I use OWL Carousel for WP in my installation. I want to enable the user to use the shortcode OWL carousel provides within ACF.
In my template file I do:
<div class="slider"> <?php $slider = get_field('stadium_slider'); echo do_shortcode( $slider ); ?> </div> <div class="stadium-text-footer"> <?php the_field('stadium_footer_text'); ?> <?php the_field('stadium_link'); ?> </div>The problem I know face is, that the shortcode is taken into consideration and the output is good – however the next div
stadium-text-footeris empty. When i remove the do_shortcode from the template, the footer text and the link are being displayed.Does anybody know what’s wrong here and how I can solve it?
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘ACF Plugin – Using shortcodes in text fields’ is closed to new replies.