Archive for the 'On WordPress' Category

Sunday, November 5th, 2006

Include tracking code in your header file.
This code also keeps from tracking any admin related activity in WordPress. In the example below, pages that include “preview” or “wp-admin” are excluded. As well, two IP addresses are being excluded.
Located near top of header.php.

<?php
global $wp_query;
$page_id = $wp_query->post->ID;

$url= $_SERVER['PHP_SELF'];
$ip= $_SERVER['REMOTE_ADDR'];
$preview = (@$_GET['preview']) [...]

Sunday, November 5th, 2006

I’m running WordPress 2.0.5 on a hosted server. The theme is a modified version of the default. I usually have a category-x.php file for each category. I like these since it allows introducing a category and great control over how posts are displayed. I also use the following plugins:
Ajaxified Comment Preview [...]