It's official, I switched to the dark side. Not only does this blog has ads but they are Google's adsense. But hey, you gotta try.
Because I was so hesitant and have been postponing this moment for years, I only did it half-way. I added a condition - only show ads when displaying a single blog post and if the post is older than 30 days. This way if you follow this blog regularly by RSS or any other way, you won't see ads when posts are published.
So here's the code in case it's useful for someone. The code is not a wordpress pluggin, I only modified the "Single page" template.
Basically it's the adsense-generated code wrapped in a div so I can float it and then wrapped in a condition that compares today's timestamp with the post's date.
Let's see what happens, maybe tomorrow I'll wake up rich. Or famous. Or both.
This entry was posted on Sunday, May 18th, 2008 and is filed under WordPress. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.