I have a custom query like this
posts_per_page=5&category_name=space
and I am getting the results just fine…
But i want to paginate the result, So clicking the “next 5” will show other old 5 posts…
How can I do this?
Help me please
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are two parts to this. First, you need to let the query know that it’s paged:
Then you need to add pagination links at the bottom of the current page’s template: