radiofranky
Member
Posted 4 months ago #
I'm trying to get the pagination to work. However, currently is not working. The http://www.abc.com/page/1 doesn't work, when I click next, it still show http://www.abc.com. The "/page/1" doesn't get created somehow. your help is appreciated.
the code is under here.
`http://pastebin.com/gnWWE1kj'
go to wp-admin/options-reading.php
then set Blog pages show at most to 5 and check if your http://www.abc.com/page/1 work or not. i also appriciate if you provide real url of site to check.
radiofranky
Member
Posted 4 months ago #
thanks. Currently I'm working on my local machine.
The problem is that when I click "next", nothing would happen.
It should have show /page/1 and /2 ... /3
but nothing.
i have set "blog pages show at most" = 72
change that to 5 it will solve your problem.
if you set 72 at blog pages show at most then when you click on page 2 it will search for post from 73-144 which you dont have. your pagination is already generated based on 5 post per page as per your code from pastebin. do you need more explanation?
radiofranky
Member
Posted 4 months ago #
thanks. I have code that set to show "posts_per_page=10".
My problem right now is when I click "next", the page number is always stuck at "page/2"
Maybe I should setup a demo site to show you what's going on.
have you had chance to take a look of the code http://pastebin.com/gnWWE1kj
radiofranky
Member
Posted 4 months ago #
I have the demo site ready. Please PM me for the info.
Thanks for the help
radiofranky
Member
Posted 4 months ago #
please check, this is my latest code and the pagination won't register.
thanks
http://pastebin.com/ajtRQnme
cjtech
Member
Posted 4 months ago #
I'm having the same problem.
tried switching to 5 post vs 10 posts - neither worked.
tried switching to static page vs posts - neither worked.
tried switching themes and back - neither worked.
radiofranky
Member
Posted 4 months ago #
i'm almost there. Got ajax working, now is just the pagination issue.
I think got something to do the variable handling but dont' know where.
cheers