WordPress.org

Ready to get started?Download WordPress

Forums

Shortcode Exec PHP
[resolved] Global (3 posts)

  1. BeRKA
    Member
    Posted 2 years ago #

    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

    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/

  2. Marcel Bokhorst
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  3. BeRKA
    Member
    Posted 2 years ago #

    So if it was not the globals. What was it about that code?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.