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
- Issues with Ajax Pagination and Filtering
- How do you paginate a query grouped by month?
- How to handle paged param in post and custom-post-type?
- Custom post type – use ajax to display sub pages
- List all posts in a custom post type with pagination (the correct way)
- Category with post type pagination returns 404
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- custom post type pagination error 404
- How To Show All Custom Post Types In A Category Instead Of Pagination?
- Pagination issue on category.php using custom post type query
- Custom Post Type Pagination Paginates Only in URL Structure
- Load Custom_post_type categories post with ajax
- Is it possible to to use custom post type types on a page with the same slug somehow?
- WordPress custom post query with pagination
- Dynamic Custom Fields
- Next Post links not working in custom post type shortcode
- Load Next Posts With AJAX not working with custom post type
- Custom Theme With Custom Loops
- Querying Custom Post Type, ordering by Custom Taxonomy Pagination Not Working
- Custom Post Types strange pagination problem
- can these 3 queries be re-written as 1 query?
- Custom post type pagination – always return first page
- pagination not working for category.php (custom post types in categories)
- Retrieve custom post types by custom taxonomies with WP_Query
- Custom post type pagination 404
- $post not working working in AJAX plugin with custom post type
- Pagination broken by naming conflict between CPT and Page
- Cant get paginations on single.php to work with my custom post types
- Load Next WordPress Posts With AJAX?
- Custom post type’s extra fields – how to handle?
- Number of posts in the archive
- Pagination custom post type not working with rewrite slug
- Pagination Not Working for Custom Taxonomy with Custom Query – 404 Error
- Pagination Error : Duplicate argument being outputted
- Getting 400 Bad Request on AJAX Call
- Custom WP_Query always respond with 200 status even when no entry
- Can’t use pagination with custom taxonomy
- admin-ajax.php GET custom-post titles
- Pagination doesn’t function properly for archive of a custom post type set as the front page
- Trouble with pagination
- Pagination 404 on Index with custom query
- previous_post_link in same taxonomy in custom post type
- Post will not load via ajax
- How to do admin CRUD & Pagination
- Custom ordering of CPT items not matching with the ordering of its pagination
- Select2 AJAX and WP Query Returns ALL and does not filter
- ajax response not recieving
- Pagination doesnt work in custom post type
- Pagination hitting 404 page on /page/4
- Getting a GET error in console – 404 not found for wp-json
- WordPress notification if new post published
- filter by custom taxonomy using ajax
- Break up posts per page in two sections
- Custom post type and custom taxonomy 404 on page 2
- passing values from functions.php to template
- Using Pagination for Custom Post Type and keeps returning 404
- Pagination on search results page
- 404 Page Not Found on /Page/2/ on Tag Page
- How to list custom post types on a custom post type page?
- Pagination for search results of custom post type [duplicate]
- How do I update_post_meta() or add_post_meta() with an AJAX call
- Pagination of custom post type leads to 404 error
- Pagination for custom post types – url rewriting
- Custom Post Type Archive Pagination
- Multiple wp_editor instances in custom post type using Ajax
- next page with custom post
- Difference between page and paged
- Taxonomy rewrite pagination 404
- All blog posts are not showing up
- Custom post pagination trouble
- Change Post Meta via AJAX from the posts list table
- Pagination on a page
- Custom Post Type Pagination on Single.php?
- Single parent post lists child posts with pagination
- Display custom-post type based on the Title matching the current selected value
- Using custom post type as front home page pagination not working
- Custom Post Type, Pagination and 404s?
- Custom post type pagination error
- 2 custom post type paging in 1 custom taxonomy
- Pagenavi Plugin and Custom Post Type – Multipage results
- WordPress custom post type numeric pagination with ajax
- Previous / Next Links For Custom Post Type Sorted By Meta_Value
- Problem with custom loop navigation inside the blog page
- Add pagination to custom single post template
- pagination for custom post type archive page
- get_query_var(‘paged’) return 0 in custom category page
- custom taxonomy pagination 404 error
- Custom archive page for custom taxonomy and pagination issue
- Sticky posts limit query and pagination for a custom post type
- Pagination in custom post type archive.php not working
- Ajax Post Filter | Split Taxonomy Into minPrice & maxPrice
- Pagination links for custom post type shows correct number of links, but links result in Page not found
- Pagination for custom post type giving 404 error (but only for news page)
- WP_Insert_Post creating duplicate posts when logged in
- how to skip a CPT element from the pager by custom field
- How to filter custom post type by multiple Taxonomies
- Not saving custom taxonomy while using ajax
- Custom post type paging return home page