Title: Calling the plugin explicitly (do_shortcode)
Last modified: September 1, 2016

---

# Calling the plugin explicitly (do_shortcode)

 *  Resolved [Blutarsky](https://wordpress.org/support/users/blutarsky/)
 * (@blutarsky)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/calling-the-plugin-explicitly-do_shortcode/)
 * What is the correct syntax to call the plugin function using do_shortcode?
 * [https://wordpress.org/plugins/accordion-shortcodes/](https://wordpress.org/plugins/accordion-shortcodes/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [philbuchanan](https://wordpress.org/support/users/philbuchanan/)
 * (@philbuchanan)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/calling-the-plugin-explicitly-do_shortcode/#post-7662977)
 * This should do what you want.
 *     ```
       <?php 
   
       $content = '[accordion]';
       $content .= '[accordion-item title="..."]';
       $content .= 'First accordion item content here.';
       $content .= '[/accordion-item]';
       $content .= '[/accordion]';
   
       echo do_shortcode($content);
   
       ?>
       ```
   
 *  Thread Starter [Blutarsky](https://wordpress.org/support/users/blutarsky/)
 * (@blutarsky)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/calling-the-plugin-explicitly-do_shortcode/#post-7663077)
 * Thank you! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Calling the plugin explicitly (do_shortcode)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/accordion-shortcodes.svg)
 * [Accordion Shortcodes](https://wordpress.org/plugins/accordion-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accordion-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accordion-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/accordion-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accordion-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accordion-shortcodes/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Blutarsky](https://wordpress.org/support/users/blutarsky/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/calling-the-plugin-explicitly-do_shortcode/#post-7663077)
 * Status: resolved