Adding code to the top of every post in WordPress

Again, to monetize my blog, I wanted to add Google AdSense to the top of every post. It turns out, that wasn’t too hard: Create a php file in the mu-plugins folder Add the following code to the file function the_content_googleads($content = ”) { if (is_single()) { $content = stripslashes(get_googleads_code()) . $content; } else {(…)

Learning PHP

I installed WordPress a few days ago at and inevitably, I had to make some changes and modify it to my liking. This sucks, because I don’t know PHP. I started hacking my way around and also ordered a book from – Beginning PHP and MySQL 5: From Novice to Professional, Second Edition.(…)