topical media & game development
professional-search-16-Digg-Plugins-pagerfix.php / php
<?php
/*
Plugin Name: PagerFix
Plugin URI: http://www.seoegghead.com/
Description: Makes the paging in WP more SE-friendly.
Author: Jaimie Sirovich
Version: 1.0
Author URI: http://www.seoegghead.com/
*/
function pager_fix(after_previous = ' ',
prelabel='« Previous Page',
current_page_tag = 'b')
{
global posts_per_page, paged;
posts_nav_link('',after_previous;
preg_match('#FROM (.*) GROUP BY#', matches);
matches[1];
wpdb->get_var("SELECT COUNT(ID) FROM max_num_pages = ceil(posts_per_page);
if (cnt = 1; max_num_pages; current_page_tag && cnt)
{
current_page_tag>"; current_page_tag>";
}
else
{
end_link = '';
}
begin_link .
'<a href="' . get_pagenum_link(cnt . '</a>' . seperator, before_next;
posts_nav_link('','',
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.