[wp-testers] previous_posts_link() buggy ?

Ryan Boren ryan at boren.nu
Mon Apr 25 22:15:52 GMT 2005


On Mon, 2005-04-25 at 17:30 -0400, e-head wrote:
> This function sometimes creates a link when there are no more posts.
> 
> I've had this problem for a while now.
> 
> You can see an example of it here:
> http://dotsandloops.net/page/19/
> 
> click "older" twice ... it will throw up the "Sorry, no posts matched
> your criteria." message.
> 
> you can also see it here:
> http://dotsandloops.net/blog/category/pictures/
> 
> Interestingly ...
> My pictures category was working fine till I edited some of the posts
> and added them to another category (cute) in addition to the pictures
> category ... then I started getting the erroneous "- older" link with
> previous_posts_link().

If you page by days (rather than posts), this will happen.  We currently
don't have code that will calculate the max number of pages when paging
by days.

Ryan




More information about the wp-testers mailing list