• Resolved gndesign


    I have successfully converted most of my php insert tags to snippets, per the new update. However, when inserting the new snippet in an iframe, it is outputting the actual text, rather than the php code.

    Below is how I successfully ran the code prior to the update:

    <iframe class="post-iframe" src="[insert_php]the_field('art-map'); [/insert_php]" width="420" height="350"></iframe>

    Below is how I am currently trying to run the snippet:
    <iframe class="post-iframe" src="[wbcr_php_snippet id="2812"]" width="420" height="350"></iframe>

    If I try to run the HTML in the snippet, I am unsure what to input for the actual src element. Any advise would be greatly appreciated! Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author webcraftic



    Insert your HTML code into the snippet. An example of a solution to this problem

    echo '<iframe class="post-iframe" src="'.the_field('art-map').'" width="420" height="350"></iframe>';

    Best regards, Alex

    • This reply was modified 7 months, 1 week ago by  webcraftic.

    Hi Alex,
    Thank you for your quick reply!
    Although I wasn’t able to solve the problem using the provided echo statement, I was able to tweak it a bit to get it working. This is the working snippet:

    ?><iframe class="post-iframe" src="<?php the_field('art-map');?>" width="420" height="350"></iframe>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Update Error in iframe insert’ is closed to new replies.