for ($cnt = 1; $cnt <= $max_num_pages; $cnt++)
if ($current_page_tag && $paged == $cnt)
$begin_link = “<$current_page_tag>”; $end_link = “</$current_page_tag>”;
$begin_link = ‘’; $end_link = ‘’;
$x = $begin_link .
‘<a href=”‘ . get_pagenum_link($cnt) . ‘“>’ .
$cnt . ‘</a>’ . $end_link;
echo join($separator, $x);
After creating and activating this plugin, you need to call the function
in your template
somewhere. For example, in the
file of your default template you can find this code (with
perhaps slightly different formatting):
<?php next_posts_link(‘« Previous Entries’) ?>
<?php previous_posts_link(‘Next Entries »’) ?>
To use the “pagerfix” version of the pager, you’d need to replace the highlighted code like this:
<?php pager_fix() ?>
Eliminating Duplicate Content
A common problem with blogs — blogs included — is that they often generate quite a bit of
duplicate content by showing an article in more than one place on the blog. For example, a certain article
may be shown on the home page, on the page of the category it’s part of, as well as the archives. That is
a lot of duplication! This section examines and fixes some of these problems.
Chapter 16: : Creating an SE-Friendly Blog
c16.qxd:c16 11:04 307