Title: [Plugin: Shortcode Exec PHP] Global
Last modified: August 20, 2016

---

# [Plugin: Shortcode Exec PHP] Global

 *  Resolved [BeRKA](https://wordpress.org/support/users/zhoberka/)
 * (@zhoberka)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-shortcode-exec-php-global/)
 * Thank you for this plugin. Have just downloaded and started using it.
 * I try to make a shortcode for the php-elite name generator found here:
    [http://www.cartographersguild.com/archive/index.php/t-3571.html](http://www.cartographersguild.com/archive/index.php/t-3571.html)
 * It doesn’t work. When I rewrite the code without globals, it works. I don’t know
   if I messed up, or if this is a known limitation. If it a limitation, please 
   add it (and other limitations) to the FAQ.
 * [http://wordpress.org/extend/plugins/shortcode-exec-php/](http://wordpress.org/extend/plugins/shortcode-exec-php/)

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

 *  Plugin Contributor [M66B](https://wordpress.org/support/users/m66b/)
 * (@m66b)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-shortcode-exec-php-global/#post-2776766)
 * You can use globals in shortcode definitions, provided you use the global keyword.
   There is no limitation, other than that all code is embedded in a function, which
   is documented in the FAQ.
 *  Thread Starter [BeRKA](https://wordpress.org/support/users/zhoberka/)
 * (@zhoberka)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-shortcode-exec-php-global/#post-2776771)
 * So if it was not the globals. What was it about that code?

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

The topic ‘[Plugin: Shortcode Exec PHP] Global’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [BeRKA](https://wordpress.org/support/users/zhoberka/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-shortcode-exec-php-global/#post-2776771)
 * Status: resolved