Title: Function instead of shortcode
Last modified: September 1, 2016

---

# Function instead of shortcode

 *  Resolved [mauricioarango](https://wordpress.org/support/users/mauricioarango/)
 * (@mauricioarango)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/function-instead-of-shortcode-2/)
 * Hi,
    Thank you so much for this great plugin.
 * I’m sorry if this obvious but I haven’t figured this out and wonder if someone
   can give me some help.
 * Is there a way to use the plugin inside a template file? I see there’s the shortcode
   and the widget, but because of the way this site is designed none of those 2 
   options work for me.
 * Any hints would be appreciated. Thank you!
 * [https://wordpress.org/plugins/rotatingtweets/](https://wordpress.org/plugins/rotatingtweets/)

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

 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/function-instead-of-shortcode-2/#post-7676663)
 * The easiest way is do to something like:
 *     ```
       echo do_shortcode("[rotatingtweets screen_name='your_twitter']");
       ```
   
 *  Thread Starter [mauricioarango](https://wordpress.org/support/users/mauricioarango/)
 * (@mauricioarango)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/function-instead-of-shortcode-2/#post-7676668)
 * Martin! Thank you so much. I didn’t know short codes could be invoked this way.
   Now I can walk away feeling I learned something new. Very useful. Thanks a million!

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

The topic ‘Function instead of shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/rotatingtweets.svg)
 * [Rotating Tweets (Twitter widget and shortcode)](https://wordpress.org/plugins/rotatingtweets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rotatingtweets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rotatingtweets/)
 * [Active Topics](https://wordpress.org/support/plugin/rotatingtweets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rotatingtweets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rotatingtweets/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [mauricioarango](https://wordpress.org/support/users/mauricioarango/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/function-instead-of-shortcode-2/#post-7676668)
 * Status: resolved