Hey guys,
i need to use an iframe on a page and deliver a parameter from url like this (i also use a plugin ezPHP)
<?php if ($_GET[id]!=””) { echo ‘<iframe src=„www.page.de/?id=’.$_GET[id].'” width=”100%” height=”auto“>‘;}?>
After saving the page i get this
<!–?php if ($_GET[id]!=””) { echo ‘<iframe src=”www.page.de/?id=’.$_GET[id].'” width=”100%” height=”auto”–>’;}?>
Is there a possibility to avoid this behaviour?
Thanks
Katharina
Hey Yigit,
yes i did and it doesn´t work at all.
Regards
Katharina
Hi,
sorry but it also doesn´t work. The Code Block element shows stuff like this in frontentd: [php] if ($_GET[id]!=””) { echo ‘ and then the iframe with an error.
The Text Element doesn´t show anything…
Regards,
Katharina
Hi!
I tried this plugin before and it worked for text blocks: https://wordpress.org/plugins/insert-php/
Cheers!
Ismael
Hi,
thanks for your advice. It works now.
Regards,
Katharina