Apr 132006
 

When switching to WordPress, I changed the URL of my counter as well, and included the scripting part in the footer of the page. It creates this icon nedstat.gif, and when displayed, you’re counted. But when experimenting with themes or other settings, I view my own pages a lot. So yesterday was a day with a lot of hits. Today I added some code to the template, to show the icon only to people not logged in, which basically counts me out.

The code:

<?php if (!current_user_can('edit_posts')) { ?>

and right behind the scripting part:

<?php } ?>
 Posted by at 00:13

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)