Passing a $_GET variable from Wordpress page into external iFrame Passing a $_GET variable from Wordpress page into external iFrame wordpress wordpress

Passing a $_GET variable from Wordpress page into external iFrame


Edit:

[iframe src="globaleye.com/external/refer.php?YOUR_VARIABLE=true"; width="100%" height="500"]

if you used more than one variable pass so you use an advanced iframe plugin so it is good for you.

[advanced_iframe securitykey="key" url_forward_parameter="SECOND_VARIABLE" src="globaleye.com/external/refer.php?YOUR_VARIABLE=true"]


In your code, where you call the iFrame:

<iframe src="http://www.example.com/some/site?external_get_param=<?php echo $_GET['source']"></iframe>


I downloaded the plugin Advanced iFrame - which allowed me to use the parameters passed in the parent page! Amazing plugin.