WordPress.org

Ready to get started?Download WordPress

Forums

Problem with iframe and & (3 posts)

  1. abbynormal1
    Member
    Posted 6 years ago #

    I have a page on our WordPress install that shows an iframe that contains an affiliate web site. The iframe code looks like this:

    <iframe src="https://www.example.com/page.asp?promo=MYPROMOCODE&affiliateID=2" width="750" scrolling="auto" frameborder="0" height="600"></iframe>

    The problem seems to be (according to the recipient of the referral's programmer) the &, which changes into & and therefore loses my affiliateID with the change.

    Is there any way to get the iframe code above to work without screwing up that &?

  2. blicj11
    Member
    Posted 6 years ago #

    Try this.

    Make all your changes, then set your iFrame code, then save (or publish). Do not go to Visual Editor before you save.

    My iFrame codes function properly until I return to edit the page. If you make any changes anywhere on the page, or got to Visual Editor before you save, WordPress 2.5.1 eats the iFrame code. This is different that 2.5.0, which scrambled the code, rendering it useless.

    You have to do it all over again if you ever have to re-edit that page.

  3. Anonymous
    Unregistered
    Posted 6 years ago #

    Thank you blicj11! Your temporary solution helped me with my problem too!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags