A simple question regarding adsense in action hooks
I did exactly the same thing and had the same issue. I wrote a tutorial for it, which you can
I mention a couple of different ways to handle it; you can choose what works for you.
Ken’s post should work for you. It’s the if statement that is determining whether or not to display on the homepage. The code within the statement should all be treated the same.
Did you use a PHP widget? Did you use the IF statement?
Can you post the code you used into http://www.pastebin.com and provide a link back here for us to look at?ModMod
Hi can you help me out? I have no idea how to do that.
Just put a “” in front of them.
Is there some tutorial on that on the internet?
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
ANDstatement in there somewhere.Mod
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.
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.
You must be logged in to reply to this topic.