Title: Issue with do_shortcode
Last modified: December 7, 2020

---

# Issue with do_shortcode

 *  [wpblogwriter](https://wordpress.org/support/users/wpblogwriter/)
 * (@wpblogwriter)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/issue-with-do_shortcode/)
 * Hi Sayful,
 * I recently discovered that the image carousel does not work properly when inserted
   in the template code and initialised with do_shortcode. Both owl-carousel-js 
   and carousel-slider-js are not loaded. I don’t really know where this comes from..
   when I enqueue both script, it works as expected.
 * Best regards,
    WBW

Viewing 1 replies (of 1 total)

 *  [dxwnh157](https://wordpress.org/support/users/dxwnh157/)
 * (@dxwnh157)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/issue-with-do_shortcode/#post-14053902)
 * You can solve it by adding the following code to functions.php.
 *     ```
       add_filter('carousel_slider_load_scripts', function () {
           return true;
       }, 9999);
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Issue with do_shortcode’ is closed to new replies.

 * ![](https://ps.w.org/carousel-slider/assets/icon.svg?rev=3102828)
 * [Carousel Slider](https://wordpress.org/plugins/carousel-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/carousel-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/carousel-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/carousel-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/carousel-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/carousel-slider/reviews/)

## Tags

 * [do_shortcode](https://wordpress.org/support/topic-tag/do_shortcode/)

 * 1 reply
 * 2 participants
 * Last reply from: [dxwnh157](https://wordpress.org/support/users/dxwnh157/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/issue-with-do_shortcode/#post-14053902)
 * Status: not resolved