Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #333775

    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

    #334020

    Hey microtool!

    Have you tried adding the code to Code Block element?

    Cheers!
    Yigit

    #334734

    Hey Yigit,

    yes i did and it doesn´t work at all.

    Regards
    Katharina

    #335164

    Hi!

    Have you tried using [php][/php] with ezPHP plugin?

    Regards,
    Yigit

    #335433

    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

    #335923

    Hi!

    I tried this plugin before and it worked for text blocks: https://wordpress.org/plugins/insert-php/

    Cheers!
    Ismael

    #336726

    Hi,

    thanks for your advice. It works now.

    Regards,
    Katharina

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘iframe & php’ is closed to new replies.