Support » Fixing WordPress » Problem with iframe and &

  • 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 &?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with iframe and &’ is closed to new replies.