Ready to get started?Download WordPress


Shortcode Exec PHP
[resolved] Global (3 posts)

  1. BeRKA
    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:

    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.


  2. Marcel Bokhorst
    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
    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


No tags yet.