OZONE Asylum
Forums
CSS - DOM - XHTML - XML - XSL - XSLT
IE7 breaks image
This page's ID:
30148
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Oops, I updated the wrong function. I thought you were using next_post_link which is used on single pages to link to the next article. After looking at your site, it appears that you just limited the number of posts visible per page to 1 which would use the next_posts_link function (which you stated, but I missed) So, all you would need to do is update the [b]next_posts_link[/b] function to the following [code] function next_posts_link($label='Next Page »', $max_page=0, $wraptag='') { global $paged, $wpdb, $wp_query; if ( !$max_page ) { $max_page = $wp_query->max_num_pages; } if ( !$paged ) $paged = 1; $nextpage = intval($paged) + 1; if ( (! is_single()) && (empty($paged) || $nextpage <= $max_page) ) { if($wraptag != '') { echo "<$wraptag>"; } echo '<a href="'; next_posts($max_page); echo '">'. preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $label) .'</a>'; if($wraptag != '') { echo "</$wraptag>"; } } } [/code] To use it in the template page, use the following code [code] <?php next_posts_function('Previous',0,'li'); ?> [/code] I am using 2.3.3 and it looks like you are using 2.2.2, but this should work as i looked at the code for the function in 2.2.2 and it is the same. [small](Edited by [url=http://www.ozoneasylum.com/user/3899]Nathus[/url] on 03-28-2008 19:34)[/small] [small](Edited by [url=http://www.ozoneasylum.com/user/3899]Nathus[/url] on 03-28-2008 19:34)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »