Beginner here; apologise for any obvious mistakes.
I have a post list on my homepage showing 3 posts at a time and using paginate_links()
.
When I click on page2 or next in the paginate_links(), it reloads the entire homepage(and scrolls to the top of page.
Need to scroll down back to post list) and then the page2 of the post list is shown.
My homepage has a lot of other content; so is there a way for paginate_links()
to work by reloading only the post lists instead of the entire page?
Beginner here; apologise for any obvious mistakes.
I have a post list on my homepage showing 3 posts at a time and using paginate_links()
.
When I click on page2 or next in the paginate_links(), it reloads the entire homepage(and scrolls to the top of page.
Need to scroll down back to post list) and then the page2 of the post list is shown.
My homepage has a lot of other content; so is there a way for paginate_links()
to work by reloading only the post lists instead of the entire page?
pageinate_links
is a function that retrieves paginated link for archive post pages.
So yes - there are links. And links works exactly this way - if you click on it, you will go to the url that is connected with that link - so the page will get reloaded.
If you want the link to cause a partial reload of only one div (or other container), you'll have to write your own code, that will: