Title: Where the hell do you put shortcode?
Last modified: August 21, 2016

---

# Where the hell do you put shortcode?

 *  Resolved [barryglick](https://wordpress.org/support/users/barryglick/)
 * (@barryglick)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/where-the-hell-do-you-put-shortcode/)
 * Okay, I know that you can use shortcode in your posts and pages, but how the 
   heck do you use it to install Rotating Tweets???? I can use the Widget, of course,
   but it bugs me when I download a plugin, and the developer assumes I fully understand
   code. Maybe that’s understood, but I have no idea where to insert this infernal
   shortcode. I tried it in a text widget, I tried it in functions.php. It sounds
   like it is something so easy that everyone just knows about it, but I don’t! 
   Please, developers, realize that there are some of us out here, who are just 
   wanting to blog, and expect the plugins to just, well, be installed and behave
   themselves. I am willing to do the work, I just don’t know what work to do where.
   Can anyone help me? And by help, I mean step by step–you type the code here, 
   it works like this, voila.
 * Barry
 * [http://wordpress.org/extend/plugins/rotatingtweets/](http://wordpress.org/extend/plugins/rotatingtweets/)

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

 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/where-the-hell-do-you-put-shortcode/#post-3697686)
 * Barry,
 * You put the shortcode in posts or page as a new line of ordinary text.
 * You might end up with something like:
 * > Here is my post
   >  [rotatingtweets screen_name=’mpntod’] And here is some more
   > text in my post.
 * Literally, all you do is
    - add a post
    - Add something like `[rotatingtweets screen_name='mpntod']` on a new line to
      the content of your post
    - hit ‘publish’ or ‘preview’
 * and you’re done.
 * Then, when you look at the actual page, you will see rotating tweets instead 
   of the shortcode.
 * There is some useful extra information at [http://codex.wordpress.org/Shortcode](http://codex.wordpress.org/Shortcode)
 * Martin
 *  Thread Starter [barryglick](https://wordpress.org/support/users/barryglick/)
 * (@barryglick)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/where-the-hell-do-you-put-shortcode/#post-3697740)
 * Thanks for you response. But won’t the post scroll off the bottom of the page?
   Does this get incorporated into the sidebar, or do I have to keep posting?
 * Is there ANY instance where you include short code in a PHP file, like functions.
   php, because I tried that and functions.php didn’t like it one bit!
 * Thanks again for your help.
 * Barry
 *  Thread Starter [barryglick](https://wordpress.org/support/users/barryglick/)
 * (@barryglick)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/where-the-hell-do-you-put-shortcode/#post-3697741)
 * Martin,
 * Actually, the link you sent me to implies you CAN use short code inside PHP tags.
   <?php echo do_shortcode(‘[gallery]‘); ?>, for example. Is there any documentation
   on how to use short codes this way?
 * Barry
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/where-the-hell-do-you-put-shortcode/#post-3697764)
 * Barry,
 * All the options for the shortcode are at [http://wordpress.org/extend/plugins/rotatingtweets/installation/](http://wordpress.org/extend/plugins/rotatingtweets/installation/)
 * You wouldn’t normally put something like
 *     ```
       <?php echo do_shortcode('[gallery]'); ?>
       ```
   
 * in a `functions.php` file since it immediately displays the information in question–
   but you might consider putting it straight into another template file (like `
   footer.php` or `page.php` for example).
 * Normally though, if you wanted to put rotating tweets into a particular area 
   of your template and it wasn’t in a post (where you would use a shortcode) or
   in a widget area (where you would use a widget), I’d be tempted to add an extra
   widget area to your template. You can do this by adding some code to the template
   and by adding a `register_sidebar` command to `functions.php` using similar code
   to that outlined [here](http://buckleupstudios.com/blog/add-a-new-widget-area-to-a-wordpress-theme/).
 * Hope this helps,
 * Martin
 *  Thread Starter [barryglick](https://wordpress.org/support/users/barryglick/)
 * (@barryglick)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/where-the-hell-do-you-put-shortcode/#post-3697801)
 * Thanks for the info, Marin!
 * Barry

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

The topic ‘Where the hell do you put 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/)

## Tags

 * [Rotating Tweets](https://wordpress.org/support/topic-tag/rotating-tweets/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 5 replies
 * 2 participants
 * Last reply from: [barryglick](https://wordpress.org/support/users/barryglick/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/where-the-hell-do-you-put-shortcode/#post-3697801)
 * Status: resolved