WordPress.org

Ready to get started?Download WordPress

Forums

Easy Modal
[resolved] Pass Parameter from PHP into Easy Modal and Shortcode (4 posts)

  1. jaspol@hotmail.com
    Member
    Posted 1 year ago #

    On a post of mine, I generate a unique list of names. I can call the easy-modal for each link and it works great. Each name has an id (that I don't show). How can I pass that variable into the easy modal function?

    My exact order of events is:
    1) Post opens and executes a PHP file

    2) The PHP file generates a list of FName and PersonId.

    3) User clicks on the Name
    echo '

  2. ' . $FName . "
  3. ";

    4) In the Easy Modal code, I have the following:
    [personid_shortcode PersonID=$id]

    5) My code in the personid_shortcode works but I don't know how I can get the PersonId in the PHP file into the Easy Modal window and then into the shortcode function. Help would be really appreciated.

    Thanks

    http://wordpress.org/extend/plugins/easy-modal/

  • jaspol@hotmail.com
    Member
    Posted 1 year ago #

    Sorry, my copy/paste didn't work well. The code in #3 is (I have the proper use of single and double quotes):

  • . $FName .
  • ;

  • danieliser
    Member
    Plugin Author

    Posted 1 year ago #

    This is something that has been requested time and time again and i am working out the bugs on a possible solution but it isnt ready for live release just yet. Reason being that you need it to do one thing and pass your info and the next needs their own set of info passed. This dynamicness is what i am trying to incorporate and it has proved tougher than originally thought.

  • danieliser
    Member
    Plugin Author

    Posted 12 months ago #

    This issue will be addressed by the next major update v1.2. This should be released very shortly.

  • Topic Closed

    This topic has been closed to new replies.

    About this Plugin

    About this Topic

    Tags