Shortcode Exec PHP
[resolved] Global (3 posts)

  1. BeRKA
    Posted 3 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. M66B
    Plugin Contributor

    Posted 3 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 3 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

  • Shortcode Exec PHP
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.