Title: Call using PHP rather than shortcode?
Last modified: August 21, 2016

---

# Call using PHP rather than shortcode?

 *  Resolved [bantman](https://wordpress.org/support/users/bantman/)
 * (@bantman)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/call-using-php-rather-than-shortcode/)
 * Hey guys, is it possible to use the plugin in template files? If so do you have
   any code examples that show how to do this?
 * Thanks!
 * [https://wordpress.org/plugins/simple-instagram/](https://wordpress.org/plugins/simple-instagram/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [mr_speer](https://wordpress.org/support/users/mr_speer/)
 * (@mr_speer)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/call-using-php-rather-than-shortcode/#post-4670116)
 * In order to pull it in via straight PHP, you’d need to include the instagram.
   class.php file, which could get a little messy. Instead, you could try the do_shortcode
   function:
 * `echo do_shortcode('[si_feed]');`
 * That way you can just add in the shortcode with it’s parameters as per usual,
   which might be a little cleaner for you.
 * mr_speer

Viewing 1 replies (of 1 total)

The topic ‘Call using PHP rather than shortcode?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-instagram_dbdbda.svg)
 * [Simple Instagram](https://wordpress.org/plugins/simple-instagram/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-instagram/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-instagram/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-instagram/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-instagram/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-instagram/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [mr_speer](https://wordpress.org/support/users/mr_speer/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/call-using-php-rather-than-shortcode/#post-4670116)
 * Status: resolved