Title: do_shortcode() not working
Last modified: August 22, 2016

---

# do_shortcode() not working

 *  Resolved [willardinteractive](https://wordpress.org/support/users/willardinteractive/)
 * (@willardinteractive)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/do_shortcode-6/)
 * I am trying to display a feed in my theme using do_shortcode but nothing is being
   generated. I have both the free and paid plugin installed. I tried placing the
   same shortcode into a Post entry and the feed showed up correctly. Any ideas 
   on what might be the problem?
 * [https://wordpress.org/plugins/feed-them-social/](https://wordpress.org/plugins/feed-them-social/)

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

 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/do_shortcode-6/#post-5270292)
 * Does the php in your theme file look like this?
 * <?php echo do_shortcode(‘[fts facebook page id=tonyhawk posts=5 type=page]’);?
   >
 *  Thread Starter [willardinteractive](https://wordpress.org/support/users/willardinteractive/)
 * (@willardinteractive)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/do_shortcode-6/#post-5270436)
 * Here is what my code looks like. The shortcode was copied from the generator 
   of the plugin.
 * <?php do_shortcode(‘[fts twitter twitter_name=AspenSanMarcos tweets_count=3]’);?
   >
 *  Thread Starter [willardinteractive](https://wordpress.org/support/users/willardinteractive/)
 * (@willardinteractive)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/do_shortcode-6/#post-5270438)
 * I guess it would help if I had the echo in there too. Sorry about that.
 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/do_shortcode-6/#post-5270442)
 * You just need to have echo before do_shortcode.
 * Look here for full docs.
    [http://codex.wordpress.org/Function_Reference/do_shortcode](http://codex.wordpress.org/Function_Reference/do_shortcode)

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

The topic ‘do_shortcode() not working’ is closed to new replies.

 * ![](https://ps.w.org/feed-them-social/assets/icon-256x256.jpg?rev=998039)
 * [Feed Them Social - Social Media Feeds, Video, and Photo Galleries](https://wordpress.org/plugins/feed-them-social/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/feed-them-social/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/feed-them-social/)
 * [Active Topics](https://wordpress.org/support/plugin/feed-them-social/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/feed-them-social/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/feed-them-social/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [slickremix](https://wordpress.org/support/users/slickremix/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/do_shortcode-6/#post-5270442)
 * Status: resolved