WordPress.org

Ready to get started?Download WordPress

Forums

Shortcode Exec PHP
[resolved] Global variables: how can I access? (5 posts)

  1. rmatveev
    Member
    Posted 1 year ago #

    Hi there!
    If one of the short codes sets any variable - how can I access this variable in any following shortcodes or page footer?

    Adding the keyword "global" at the definition of this variabe does not help.

    Thanks!

    http://wordpress.org/extend/plugins/shortcode-exec-php/

  2. Marcel Bokhorst
    Member
    Plugin Author

    Posted 1 year ago #

    If it doesn't work with the global keyboard, than it is probably not going to work. Maybe it has to do with the order in which code is execute. A possible solution is to use WordPress options to pass values.

  3. rmatveev
    Member
    Posted 1 year ago #

    Thank you very much for that! But I wasn't able to find any information about this "option" to pass variables. Can you point me into the right direction?

    Thanks again!

  4. Marcel Bokhorst
    Member
    Plugin Author

    Posted 1 year ago #

  5. rmatveev
    Member
    Posted 1 year ago #

    Thank you very much! That works!!! :)))

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic