Title: Seems do_shortcode not working with [php] shortcode!
Last modified: August 22, 2016

---

# Seems do_shortcode not working with [php] shortcode!

 *  [Shah Alom](https://wordpress.org/support/users/shahalom/)
 * (@shahalom)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/seems-do_shortcode-not-working-with-php-shortcode/)
 * Not sure why the following code is not working !!
 * $meta_var = ‘Hello, here is [php]Php code goes here[/php] code! ‘;
    echo do_shortcode(
   $meta_var);
 * output: Hello, here is 1 code!
 * [https://wordpress.org/plugins/syntaxhighlighter/](https://wordpress.org/plugins/syntaxhighlighter/)

Viewing 1 replies (of 1 total)

 *  [Cameron Jones](https://wordpress.org/support/users/cameronjonesweb/)
 * (@cameronjonesweb)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/seems-do_shortcode-not-working-with-php-shortcode/#post-5756223)
 * I too encountered this. `echo apply_filters( 'the_content', $meta_var );` should
   do the trick. However it would make far more sense if `do_shortcode` would render
   the code.

Viewing 1 replies (of 1 total)

The topic ‘Seems do_shortcode not working with [php] shortcode!’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/syntaxhighlighter_ffffff.svg)
 * [SyntaxHighlighter Evolved](https://wordpress.org/plugins/syntaxhighlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/syntaxhighlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/syntaxhighlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/syntaxhighlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/syntaxhighlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/syntaxhighlighter/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Cameron Jones](https://wordpress.org/support/users/cameronjonesweb/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/seems-do_shortcode-not-working-with-php-shortcode/#post-5756223)
 * Status: not resolved