Title: do_shortcode() returns string
Last modified: August 30, 2016

---

# do_shortcode() returns string

 *  [r_a_d_u](https://wordpress.org/support/users/r_a_d_u/)
 * (@r_a_d_u)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/do_shortcode-returns-string/)
 * The following call:
    _echo do\_shortcode(‘[get\_post\_content id=”333″]’);_ returns_[
   get\_post\_content id=”333″]_ in browser.
 * I used to have my website on wordpress 3.5. I am migrating it now to another 
   server and I also upgraded to wordpress 4.3. As a result do_shortcode does not
   work properly anymore.
    It used to work fine on 3.5.
 * Any ideas how to make do_shortcode functioning ?

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [10 years, 9 months ago](https://wordpress.org/support/topic/do_shortcode-returns-string/#post-6381591)
 * try swapping the apostrophes and quotes
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/do_shortcode-returns-string/#post-6381595)
 * what plugin or theme are you using for the shortcode?
 *  Thread Starter [r_a_d_u](https://wordpress.org/support/users/r_a_d_u/)
 * (@r_a_d_u)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/do_shortcode-returns-string/#post-6381624)
 * [@steven](https://wordpress.org/support/users/steven/) Stern
    swapping apostrophes
   and quotes did not help
 * [@alchymyth](https://wordpress.org/support/users/alchymyth/)
    I have a custom
   developed theme based on some template. The one who developed is not available
   anymore.
 *  Thread Starter [r_a_d_u](https://wordpress.org/support/users/r_a_d_u/)
 * (@r_a_d_u)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/do_shortcode-returns-string/#post-6381627)
 * [@alchymyth](https://wordpress.org/support/users/alchymyth/)
    i just checked 
   the code. It looks like default wordpress 4.3 shortcode functionality is used.
   Shortcodes are added to the theme via functions.php file inside the theme.
 *  [Daniyal Ahmed (a11n)](https://wordpress.org/support/users/daniyalahmedk/)
 * (@daniyalahmedk)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/do_shortcode-returns-string/#post-6381630)
 * Are you sure your plugin is activated ?
 *  Thread Starter [r_a_d_u](https://wordpress.org/support/users/r_a_d_u/)
 * (@r_a_d_u)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/do_shortcode-returns-string/#post-6381639)
 * [@daniyalahmedk](https://wordpress.org/support/users/daniyalahmedk/)
    No plugin
   is required – or do I miss anything ?
 * as far as I can see I don’t have any plugin installed for shortcodes functionality.
   It is supposed to work based on standard wordpress functionality. I did not use
   any plugin for shortcodes when running on wordpress 3.5.
 *  [Daniyal Ahmed (a11n)](https://wordpress.org/support/users/daniyalahmedk/)
 * (@daniyalahmedk)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/do_shortcode-returns-string/#post-6381643)
 * No there is no short code by default like that, you can use this plugin
 * [https://wordpress.org/plugins/post-content-shortcodes/](https://wordpress.org/plugins/post-content-shortcodes/)
 * and than use :
 * > echo do_shortcode(‘[post-content id=333]’);
 *  Thread Starter [r_a_d_u](https://wordpress.org/support/users/r_a_d_u/)
 * (@r_a_d_u)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/do_shortcode-returns-string/#post-6381645)
 * [@daniyalahmedk](https://wordpress.org/support/users/daniyalahmedk/)
    This plugin
   did not help – [https://wordpress.org/plugins/post-content-shortcodes/](https://wordpress.org/plugins/post-content-shortcodes/).
   I also tried other plugins – still the same issue.
 *  [Daniyal Ahmed (a11n)](https://wordpress.org/support/users/daniyalahmedk/)
 * (@daniyalahmedk)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/do_shortcode-returns-string/#post-6381646)
 * Paste URL here.
 *  Thread Starter [r_a_d_u](https://wordpress.org/support/users/r_a_d_u/)
 * (@r_a_d_u)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/do_shortcode-returns-string/#post-6381652)
 * [https://wordpress.org/plugins/shortcodes-ultimate/](https://wordpress.org/plugins/shortcodes-ultimate/)
   
   [https://wordpress.org/plugins/synved-shortcodes/](https://wordpress.org/plugins/synved-shortcodes/)
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/do_shortcode-returns-string/#post-6381664)
 * > Shortcodes are added to the theme via functions.php file inside the theme.
 * please post the full code of fuctions.php ( [http://codex.wordpress.org/Forum_Welcome#Posting_Code](http://codex.wordpress.org/Forum_Welcome#Posting_Code))

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

The topic ‘do_shortcode() returns string’ is closed to new replies.

## Tags

 * [do_shortcode](https://wordpress.org/support/topic-tag/do_shortcode/)
 * [string](https://wordpress.org/support/topic-tag/string/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 4 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/do_shortcode-returns-string/#post-6381664)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
