napps126
Member
Posted 1 year ago #
I have a Techified Theme on http://www.iblog126.com.
After the 1000th post, the older entries button at the bottom of the page, above the footer, disappears. If i remove every post after 999, it appears again. the link is suppose to take me to http://www.iblog126.com/page/2/ and so on.
Anyone would know why? Please let me know. thanks.
napps126
Member
Posted 1 year ago #
check this line in paginate.php:
if (0 < $numposts) $numposts = number_format($numposts);
this might break the number.
http://php.net/manual/en/function.number-format.php
possibly change it to:
if (0 < $numposts) $numposts = int($numposts);
napps126
Member
Posted 1 year ago #
attempted that. created an error message *smh lol
napps126
Member
Posted 1 year ago #
I'm assuming is a issue with wp-pagenavi plugin but i dont know what exactly. It worked perfectly fine up to the 1000th post and was installed with the theme
attempted that. created an error message *smh lol
my mistake - i didn't double check the syntax of (int) :-(
try:
if (0 < $numposts) $numposts = (int)$numposts;
or you could even try to totally remove the line:
if (0 < $numposts) $numposts = number_format($numposts);
napps126
Member
Posted 1 year ago #
Your A Genius Man!!! Thanks. Removing it worked. Thanks alot!!!!