1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to embed html code in wordpress post ?

Discussion in 'General Scripting Chat' started by cynic, Jun 29, 2011.

  1. cynic

    cynic Junior Member

    Joined:
    Oct 16, 2010
    Messages:
    101
    Likes Received:
    6
    Im using ?Ghostcpa and currently having the worst time trying to get the iframe right.


    all it does is appear in plain text ? I cant type the script on her since I haven't been posting long enough.
     
  2. iclosem

    iclosem Junior Member

    Joined:
    Aug 15, 2010
    Messages:
    122
    Likes Received:
    134
    Location:
    Southern Cali
    click on the html tab?
     
  3. DebtFreeMe

    DebtFreeMe Regular Member

    Joined:
    Mar 14, 2010
    Messages:
    418
    Likes Received:
    363
    Occupation:
    Military
    Location:
    Earth
    Like iclosem suggested are you in the html tab or the visual tab?

    Also, I've had instances with Wordpress where if I drop something into the html tab, then go over to the visual tab and adjust something in that then save it, it will screw it up and set it as though I had only pasted it into the visual tab...

    So, that may also be a consideration if you are trying to use both the visual and html editor... The only way I found to fix that was to copy and paste it back into the html editor, and not use the visual editor on it again...
     
  4. cynic

    cynic Junior Member

    Joined:
    Oct 16, 2010
    Messages:
    101
    Likes Received:
    6
    Code:
     bit.  ly  /  ijypyE


    Thank you for the response , I did click the html tab, i'm beginning to think it only works on php files though. Im absolutely useless with coding. Above link is the full code, (notice I left it on the visual tab so you can see the full code but in html tab it still shows plain text )
     
  5. DebtFreeMe

    DebtFreeMe Regular Member

    Joined:
    Mar 14, 2010
    Messages:
    418
    Likes Received:
    363
    Occupation:
    Military
    Location:
    Earth
    You may need to put the code into its own file, and then use an iframe in wordpress to show it. I've had to do that with an html program that I had that would calculate some things for the user. Unfortunately, in wordpress it would show correctly, but it wouldn't acually calculate anything. But once it was in its own html file it would run. So I iframed it from the html file and it worked...
     
  6. cynic

    cynic Junior Member

    Joined:
    Oct 16, 2010
    Messages:
    101
    Likes Received:
    6
    I've tried this, still no dice .....can I PM you ?


    Code:
    bit.ly/ mcayMZ
    Hmmm maybe I should learn to code manually and not use Ghostcpa.
     
  7. DebtFreeMe

    DebtFreeMe Regular Member

    Joined:
    Mar 14, 2010
    Messages:
    418
    Likes Received:
    363
    Occupation:
    Military
    Location:
    Earth
    I've never used Ghostcpa, and I'm kind of out of ideas on what you can do... Hopefully someone else might have a few ideas to help you...

    Good luck...
     
  8. cynic

    cynic Junior Member

    Joined:
    Oct 16, 2010
    Messages:
    101
    Likes Received:
    6
    Thank you regardless, I'll search around and see what I can do.
     
  9. deeznutzca

    deeznutzca Newbie

    Joined:
    Sep 29, 2009
    Messages:
    29
    Likes Received:
    10
    I don't know if this will help or not, but when I need to embed code into my WP install, I use the header/footer plugin and am able to get my code in-between the equivalent of the <body> tags which I think GCPA requires.

    I used it for adsense script and other scripts that go on either every page or at the beginning or ending of each post.

    Sorry if I'm off-base.