you might use the $.load
and preventDefault()
from jQuery.
Assugming that you have .page-link
link class on each url in pagination and you have all the posts in the #content
div following code can help you to load the posts in that div on that particular page.
$("body").on("click", "a.page-link", function(e) {
e.preventDefault();
$("#content").load($(this).attr("href") + " #content");
});
This will replace the current posts in that page with the new posts from that particular page. A look on your div structure might help me to write the complete code for you which can work on your site.
Related Posts:
- Pagination with custom query, custom search form, single and pages, ajax and no plugins
- How to display custom post type pagination buttons when processing AJAX request
- AJAX search on post pages by custom post type
- Development of a WordPress Search Plugin – Best Practices
- Pagination throws 404 error on custom taxonomy archive pages
- Custom Post Type Archive Page: Set Posts Per Page, Paginate
- Pre get posts for single post
- Filtering custom posts with Ajax
- is_singular() not working if called via callback function of admin-ajax.php
- Pagination not working with custom category template
- Custom Post Type pagination – normal solutions aren’t helping
- Custom Post Type Archives by Date (stored as meta value) WP3.1
- Pagination Doesn’t Work
- Numeric pagination custom post type
- Posts in Multiple Columns and Rows with one single loop
- Full-Ajax Theme: parseJSON error while building a JSON object from a WordPress custom template
- Paginate Custom Post Type Page
- Pagination not working
- Pagination Custom post type
- Pagination Issue: Custom Post Type In Index
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Pagination problem
- Unable to get paginate_links working with a custom query [duplicate]
- Custom post type, permalinks & pagination, going wrong
- Repeating posts when paginating random posts
- Pagination for custom php code
- Received nothing after executing AJAX post function
- Loading custom content type from ajax results?
- Pagination for Custom Taxonomy Page [duplicate]
- Pagination on with query_posts in custom post type template
- Paging doesn’t work?
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- AJAX load more for different custom post type loops
- Help with Elementor Pagination CPT archive 404 problem
- Custom taxonomy rewrite give pagination 404
- Next and Previous Posts of Same Parent
- WP_Query inside foreach loop returning same value for all options when filtered using ajax
- How to handle paged param in post and custom-post-type?
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Load Custom_post_type categories post with ajax
- Next Post links not working in custom post type shortcode
- Custom Post Types strange pagination problem
- Custom post type pagination – always return first page
- $post not working working in AJAX plugin with custom post type
- Custom post type’s extra fields – how to handle?
- Pagination custom post type not working with rewrite slug
- Pagination Not Working for Custom Taxonomy with Custom Query – 404 Error
- Custom WP_Query always respond with 200 status even when no entry
- Pagination 404 on Index with custom query
- Pagination doesnt work in custom post type
- WordPress notification if new post published
- Break up posts per page in two sections
- Pagination on search results page
- 404 Page Not Found on /Page/2/ on Tag Page
- How do I update_post_meta() or add_post_meta() with an AJAX call
- Custom Post Type Archive Pagination
- Taxonomy rewrite pagination 404
- Change Post Meta via AJAX from the posts list table
- Custom Post Type Pagination on Single.php?
- Custom post type pagination error
- Add pagination to custom single post template
- get_query_var(‘paged’) return 0 in custom category page
- WP_Insert_Post creating duplicate posts when logged in
- Custom post type paging return home page
- Filtering posts based on three taxonomies
- How to submit the date with ajax?
- Pagination on custom post type without plugin
- How can I create a button that when clicked populates a div with a list of foods that are checked as a certain type of ACF?
- Why is my loop not populating the page with my custom taxonomy terms from my custom post type?
- Ajax load more inside custom post type taxonomy
- Pagination for custom query returns 404
- Custom post type pagination problem – page 1 and 2 show same content
- Custom Post Type Pagination – not displaying posts
- next_posts_link() always generates second page link on custom post type
- 2 custom posts types, in their own columns, one pagination for both
- Pagination functions won’t work
- Collect custom post in a calendar
- pagination for a custom query
- Paging not working for hierarchical custom post type
- Custom taxonomy in custom post type archive with pagination
- How to Fix Custom WordPress Loop with Pagination on Single Post View?
- why custom post archive gives always no more than 10 posts despite of paging settings?
- Pagination on custom post types
- Pagination in custom loop for custom post type throwing 404 error
- Pagination for a Custom Taxonomy
- Pagination URL order
- WordPress Load more posts by ajax not working
- Pagination for event query
- Two different archive pages showing the same content
- WordPress custom post type post and category links 404
- Pagination not working for archive
- update custom taxonomy with Ajax in edit.php file [duplicate]
- Archive page – problem with pagination
- Pagination not working in custom post type
- Pagination not working
- Pagination on category pages using wp_pagenavi causes 404 errors
- CPT Archive Pagination – Page not found
- Pagination not working on custom post type archive
- Archive pagination – second page shows exactly the same posts
- Two pagination in one page without AJAX