Title: [Plugin: Shortcode Exec PHP] Shortcode posts as text
Last modified: August 20, 2016

---

# [Plugin: Shortcode Exec PHP] Shortcode posts as text

 *  Resolved [Jeff M.](https://wordpress.org/support/users/fenfan/)
 * (@fenfan)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-shortcode-exec-php-shortcode-posts-as-text/)
 * I am attempting to use the Shortcode Exec PHP plug-in at the following test site:
 * [One Boston Fan](http://onebostonfan.com/)
 * For some reason, when I use the suggested call-out:
 * `[shortcode arg="hello_value"]`
 * it simply posts as text. However, when I use the default:
 * `[hello_value]`
 * it executes the script.
 * Any ideas?
 * [http://wordpress.org/extend/plugins/shortcode-exec-php/](http://wordpress.org/extend/plugins/shortcode-exec-php/)

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

 *  Plugin Contributor [M66B](https://wordpress.org/support/users/m66b/)
 * (@m66b)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-shortcode-exec-php-shortcode-posts-as-text/#post-2662240)
 * What do you mean by “it simply posts as text” ?
    How is your shortcode defined?
 *  Thread Starter [Jeff M.](https://wordpress.org/support/users/fenfan/)
 * (@fenfan)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-shortcode-exec-php-shortcode-posts-as-text/#post-2662241)
 * Hi, Marcel:
 * I am using the default shortcode that was included with your plug-in.
 *     ```
       extract(shortcode_atts(array('arg' => 'default'), $atts));
       echo "Hello world!" . PHP_EOL;
       echo "Arg=" . $arg . PHP_EOL;
       echo "Content=" . $content . PHP_EOL;
       ```
   
 * If you check the site, I have examples executing (or attempting to execute) the
   code in both posts and pages.
 *  Plugin Contributor [M66B](https://wordpress.org/support/users/m66b/)
 * (@m66b)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-shortcode-exec-php-shortcode-posts-as-text/#post-2662243)
 * I don’t see anything wrong. ‘hello_world’ is the name of the plugin, so you should
   use the shortcode `[hello_world]` in your posts or `[hello_world arg="Bob"]`).
 *  Thread Starter [Jeff M.](https://wordpress.org/support/users/fenfan/)
 * (@fenfan)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-shortcode-exec-php-shortcode-posts-as-text/#post-2662245)
 * I think that I see the problem.
 * Instead of
 * `[shortcode arg="hello_world"]`
 * I should be doing this
 * `[hello_world arg="Joe"]`
 *  Thread Starter [Jeff M.](https://wordpress.org/support/users/fenfan/)
 * (@fenfan)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-shortcode-exec-php-shortcode-posts-as-text/#post-2662247)
 * This is what happens when I attempt to work on my site late at night when I should
   be in bed. 🙂
 * Thanks, Marcel!
 *  Plugin Contributor [M66B](https://wordpress.org/support/users/m66b/)
 * (@m66b)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-shortcode-exec-php-shortcode-posts-as-text/#post-2662249)
 * Maybe the argument should have been called ‘Arghhh’ 😉
 *  Thread Starter [Jeff M.](https://wordpress.org/support/users/fenfan/)
 * (@fenfan)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-shortcode-exec-php-shortcode-posts-as-text/#post-2662250)
 * Haha, yeah, it was coming to that! 🙂
 * Thanks again!

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

The topic ‘[Plugin: Shortcode Exec PHP] Shortcode posts as text’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shortcode-exec-php.svg)
 * [Shortcode Exec PHP](https://wordpress.org/plugins/shortcode-exec-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcode-exec-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcode-exec-php/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcode-exec-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcode-exec-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcode-exec-php/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Jeff M.](https://wordpress.org/support/users/fenfan/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-shortcode-exec-php-shortcode-posts-as-text/#post-2662250)
 * Status: resolved