JavaScript Editor Ajax software     Free javascripts 



Main Page

for ($cnt = 1; $cnt <= $max_num_pages; $cnt++)
{
if ($current_page_tag && $paged == $cnt)
{
$begin_link = “<$current_page_tag>”; $end_link = “</$current_page_tag>”;
}
else
{
$begin_link = ‘’; $end_link = ‘’;
}
$x[] = $begin_link .
‘<a href=”‘ . get_pagenum_link($cnt) . ‘“>’ .
$cnt . ‘</a>’ . $end_link;
}
echo join($separator, $x);
}
echo $before_next;
posts_nav_link(‘’,’‘,$nxtlabel);
}
?>
After creating and activating this plugin, you need to call the function
pager_fix()
in your template
somewhere. For example, in the
index.php
file of your default template you can find this code (with
perhaps slightly different formatting):
<div class=”navigation”>
<div class=”alignleft”>
<?php next_posts_link(‘&laquo; Previous Entries’) ?>
</div>
<div class=”alignright”>
<?php previous_posts_link(‘Next Entries &raquo;’) ?>
</div>
</div>
To use the “pagerfix” version of the pager, you’d need to replace the highlighted code like this:
<div class=”navigation”>
<?php pager_fix() ?>
</div>
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.
307
Chapter 16: : Creating an SE-Friendly Blog
c16.qxd:c16 11:04 307


JavaScript Editor Ajax software     Free javascripts