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

  1. jaspol@hotmail.com
    Posted 3 years 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.



  • jaspol@hotmail.com
    Posted 3 years 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
    Plugin Author

    Posted 3 years 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
    Plugin Author

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