DISQUS

ian's picture

Unregistered

Feeds

aliases

  • ian

ian

4 years ago

in Previous, Next links on Huddled Masses
Aha ! A simple mistake sorts out the extra ampersand - towards the end of the get_pagenum_link function, change the line after the if stristr to read:

$qstr .= $querystring_separator.$page_querystring.$querystring_equal.$pagenum;


It's just a typo - there is a global definition for $querystring_equal above this point, but it's never used.

4 years ago

in Previous, Next links on Huddled Masses
Neat !

I have two comments to make: the first is that I had to change the first RewriteRule statement syntax to cope with sub-categories (basically it needs to be able to pass a / in $1), so it now looks like this:

RewriteRule ^category/(.*)?page/?([0-9]{1,})?/? /index.php?category_name=$1&paged;=$2 [QSA,L]

and the second is that with the system as it stands, searching isn't so hot. On a search for the letter 'a' (I wanted to make sure the paged limit was hit !) I end up with the following URL for the second page:

http://my.demo.blog/index.php?s=a&paged;&2

which isn't so great. I'm not sure yet why the = has become a 2, but so far that's the only real show stopper from taking this plug-in live.

Thank you very much for making such an easy to use and neat Prev/Next.
Returning? Login