How to include “Popular posts” in your sidebar in wordpress

Popular Posts

I just included an automatic “Popular posts” list in my sidebar.

It is a very efficient way to show your visitors other popular content on your site. It is automatic and does not need you to do any manual work after you have installed it.

This is what you do:

Continue reading “How to include “Popular posts” in your sidebar in wordpress”

How to include “Popular posts” in your sidebar in wordpress

How to include a trendmap in your sidebar

Add a thumbnail of the trendmap
First, go to the page with the trendmap you want. An example:
Trendmap for

You find the complete list of trendmaps here.

Then click the link: “- Go to code examples for this chart – “

Then open the template for your sidebar. For WordPress 1.5 that is:

Insert the code for “Code to add a thumbnail of the trendmap for…” from the code example page.

Eirikso badge

…or you can insert a badge with a link to the trendmap. Simply insert the “Code to add a trendmap badge with a link to the trendmap for…” from the code example page.

How to include a trendmap in your sidebar

Experimenting with automatic email notifications

Using a plugin called subscribe 2 I have set up a system that lets my readers subscribe to automatic email notifications.

Not everybody are using RSS yet, so for the people that want another way to get notifications this system seems good.

I have only found one bug, and that is not a bug in the plugin, but a bug in WordPress. If you post by mail or by using software like w.Bloggar people will not get a notification.

You can register for automatic updates from here.

Experimenting with automatic email notifications

How to create a random banner in WordPress

At the bottom of this page you can find a simpler solution to this question.

I have currently removed the random banner from my design. Not because it didn’t work well, but because I wanted a simpler design.

As you might have noticed, the banner at the top of this site changes as you navigate the site. To implement this in WordPress is quite simple.

You need this plugin:
Random Banner
Random banner how to install

And a couple of banners. I made mine with a template I made in Photoshop. You can download my template here:
Template to edit the default banner in WordPress

Or you can make a couple of banners using this tool:

When you have set up Random Banner and made some top banners, place them in the random banner folder as noted in the instructions for the plugin.

Activate the Random Banner plugin.

Now you need to edit line number 27 in “header.php” for your current theme. You should replace the existing line 27 with this one:
#header { background: url("") no-repeat bottom center; }

NOTE: I have not bothered to install a plugin that lets me print pure PHP-code on my page, so you can not copy line 27 directly from here. You need to delete the space between < and ? before "php random_banner…"

…and off you go!

You can read about my current banners here.

How to create a random banner in WordPress

WordPress 1.5 so far

I switched from MovableType 3.14 to WordPress 1.5 a couple of weeks ago. I actually paid for a license of MT, but still I was tempted to try WordPress. Both because DreamHost offer One-Click install of WP and because I never really felt like home in PERL-based MovableType. Its like a friend of mine, Trond Isaksen says “PERL is 20% programming and 80% Magic”. Well, Trond is a wizard, and masters PERL perfectly well. I am not a wizard. I am not even a programmer. I have done my share of basic, assembly, pascal and C, but I am not a programmer.

And what do I feel about the switch? I feel good! I feel that I have much more control of what is happening now by using WordPress. I have even done some modifications and can conclude that PHP is not so much about magic. It is actually possible to understand.

Plugins like BAStats, Exhibit and the rest of the stuff from Owen Winkler alone makes it very difficult to choose another publishing tool.

BAStats gives you nice and accurate trafic data right in your WordPress administration GUI.


Exhibit gives you an excellent tool to upload and manage pictures in your blog. Also directly from your WordPress administration GUI.

The fact that WordPress actually is free makes the world a better place to live. So, if we could get world peace and no hunger then we are all set. 😉

A friend of mine, Øystein has set up a good starting point for people that want to try out WordPress: Customize wordpress.

WordPress 1.5 so far

An update on BotCheck for WordPress 1.5

It seems like I wasn’t that stupid after all:

Thanks to Eirikso for catching a mistake in the new install instructions for Bot-Check in WordPress 1.5. The old instructions have you remove an if statment that checks for a logged in user. A new download has been put up with correct install instructions.

To fix:


Right before the line

Logged in as …

So, now I am up and running with the latest version of BotCheck and can recommend this little plugin for everyone running WordPress 1.5!

Related post:
BotCheck for WordPress 1.5

An update on BotCheck for WordPress 1.5

BotCheck for WordPress 1.5

I have had problems with BotCheck preventing trackbacks. I have deactivated it and try another plugin. More on that issue here!

You find an update on this issue here:
BotCheck 1.1 fixed


I am using BotCheck to prevent comment spam. This works fine in WordPress 1.5. I had to do some small changes to get BotCheck Version 1.0 work in 1.5

You have to change the comments.php-file in your current theme directory. My comments.php look like this:

So, it works and I am happy, but BotCheck is now upgraded to version 1.1. So, I tried to upgrade, but got an error:

Parse error: parse error, unexpected T_ELSE in
…../wp-content/themes/wwweiriksocom/comments.php on line 98

Somebody at some point said “if it works, don’t fix it”, so I am back to version 1.0 with the fix in my comments.php mentioned here.

I will check back to to see if someone replies to my comment. I have probably done something very stupid, and the fix is probably very easy…

BotCheck for WordPress 1.5