A simple question regarding adsense in action hooks

  • Mod

    Kenneth John Odle

    #19657

    Q:

    Hi can you help me out? I have no idea how to do that.

    A:

    Just put a “” in front of them.

    Q:

    Is there some tutorial on that on the internet?

    A:

    http://blog.kjodle.net/2011/11/04/graphene-action-hook-widgets-an-easy-way-to-modify-your-blog/#Bonus_A_Little_PHP_Goes_a_Long_Way

    read part 5 (the last bullet point)– it’s buried in there somewhere. You can also try this one, which is far better than anything I found on the PHP manual.

    @Josh

    I did figure out there was a better way to implement that code, but I used is_single() which works on posts, but not pages. But it keeps it off archives. Not sure of something that does posts and pages, but nothing else. Probably need an AND statement in there somewhere.

    Anonymous

    #19658

    @ Ken,

    Thanks for that.

    This has been a big part of what I’ve been working on recently; understanding all the different wordpress conditional statements.

    Mod

    Kenneth John Odle

    #19659

    Josh — yeah, there are tons of those, and because they can be used in so many different ways, it takes time to figure them all out. It’s happy fun time when you finally get the one you need to do what you want.

    @alrwebber

    I looked at this again:

    it’s buried in there somewhere. You can also try this one,

    It is buried in there. I’ve highlighted this point to make it more obvious, and added the link I include above. You really need to know this, because a single unescaped quotation mark gives you the error you got above, which means no one can read your blog.

    alrwebber

    #19660

    thanks for the help guys! you’ve been both awesome. Got it working well.

Viewing 4 posts - 11 through 14 (of 14 total)

  • 1
  • 2
  • You must be logged in to reply to this topic.