Entries Categorized as 'php'

Adding code to the top of every post in Wordpress

Date April 7, 2007

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; […]

Learning PHP

Date April 7, 2007

I installed Wordpress a few days ago at www.blogstogo.com 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 Amazon.com - Beginning PHP and MySQL 5: From Novice to Professional, […]

Close
E-mail It