Title: ACF Plugin &#8211; Using shortcodes in text fields
Last modified: August 22, 2016

---

# ACF Plugin – Using shortcodes in text fields

 *  [torbent](https://wordpress.org/support/users/torbentschechnegmailcom/)
 * (@torbentschechnegmailcom)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/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-footer` is 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!
 * [https://wordpress.org/plugins/advanced-custom-fields/](https://wordpress.org/plugins/advanced-custom-fields/)

Viewing 1 replies (of 1 total)

 *  [sguk](https://wordpress.org/support/users/sguk/)
 * (@sguk)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/acf-plugin-using-shortcodes-in-text-fields/#post-5444160)
 * Remember that with acf you are pulling in the field to your template, not pulling
   in the shortcode.
    The shortcode does it’s own work to load the data into the
   field, then you are pulling in the field itself, containing this data so this
   should work ok with <?php the_field(‘stadium_slider’); ?> which will display 
   what’s in that field.
 * Alternatively, manually create the slider code within your template and use a
   repeater acf field
    Hope this helps

Viewing 1 replies (of 1 total)

The topic ‘ACF Plugin – Using shortcodes in text fields’ is closed to new replies.

 * ![](https://ps.w.org/advanced-custom-fields/assets/icon.svg?rev=3207824)
 * [Advanced Custom Fields (ACF®)](https://wordpress.org/plugins/advanced-custom-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields/reviews/)

## Tags

 * [ACF](https://wordpress.org/support/topic-tag/acf/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 1 reply
 * 2 participants
 * Last reply from: [sguk](https://wordpress.org/support/users/sguk/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/acf-plugin-using-shortcodes-in-text-fields/#post-5444160)
 * Status: not resolved