• Hey there. I installed the CG-Inbetween plugin and it seems to work great… EXCEPT.

    Whenever I put in something to be added that has quotes (“) in it, as soon as I save it, it seems to add a slash (\) just before each quote (“)

    So, when I add the following:
    That Girl “IS” really hot
    What ends up being saved is:
    That Girl \”IS\” really hot

    So, as you can imagine my Google ads won’t work because of all the extra slashes (\) in the code.

    Any idea why this is happening or how to fix it? Thanks a bunch.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Yes, because the quotes need to be escaped when you echo the adsense html using PHP. Don’t echo it. Save it as a file, say “my-adsense.htm”, in wp-content and call it in the file box.

    Thread Starter campea

    (@campea)

    Hey there Beel,

    Thanks for the suggestion. Saddly it didn’t work. I took my google Ad code and saved it as ad-adsense.htm I uploaded that into my wp-content folder.

    In the file dialog box I called for https://www.celebritygossipblog.com/wp-content/ad-adsense.htm

    but the ad doesn’t appear at all on the page.

    What am I doing wrong?

    Thanks again.

    Thread Starter campea

    (@campea)

    duh… I’m an idiot. I figured it out. I should have just called ad-adsense.htm not the whole https://www.celebritygossipblog.com/wp-content/ad-adsense.htm

    Thanks again Beel

    Yeah, I thought just specifying a file name would be clear/sensible, but I think like a programmer. ??

    And yes, the echo field currently escapes all quotes — I’ll try to fix that at some point, but for most folks who want to multi-display a snippet of adsense html code, you should be putting it into a single HTML file anyway, and use the file include method as beel noted.

    Any other questions, post away.

    -d

    Does it work on WP 1.3.2 ?
    I installed it but couldnt get it to work. It just put stuff for the LAST parameter

    If you mean 1.5.2, yes, it should work fine. If you follow the docs, should just work right off the bat. What have you tried, and what is it doing?

    The only known issue is the escaping of quotes, and that is easiest to resolve by using the file-include method rather than directly typed text/echo.

    -d

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘CG-Inbetween Problem’ is closed to new replies.