You are doing the right thing. In theory you can probably intercept the “normal” API request and modify the relevant wp_query
to whatever you need, but this will mean that you are changing and overriding that API and if you will need it in its “virgin” form at some point it will not be available.
As for pagination, it is true that you need to make your own, but it is actually much easier to do that than on the HTML front end, all you need is to keep the page number in your JS handling routine and send the requested page as part of the request.
Related Posts:
- Custom post type with Filter and Page Nav
- Pagination on custom post types
- meta query always fails even if data is correct
- Pagination in custom post type page template
- Pagination fault in custom post type archive page [duplicate]
- How to display data with pagaination on backend?
- Pagination custom post types outside loop
- shortcode order for event custom post type
- Custom Post Type Pagination Not Working or Single Posts Displaying?
- 404 error Custom search results page for custom post types with friendly URL
- Paginating custom query on category template
- Events with multiple event dates + permalink for each date
- query and paginate multiple post types
- Custom post type archive pagination with HTML5Blank theme?
- Custom Post Type Pagination Problem in Admin Section
- Selecting posts older than the current Unix epoch timestamp
- Paginate custom taxonomy category with wp_custom_pagination
- Unable to get the upcoming events for custom post
- Filter RSS feed for custom post type to events for next 7 days only
- Custom post type navigation on static page
- Pagination in custom loop for custom post type throwing 404 error
- Custom pagination [duplicate]
- Custom Query With Multiple Meta Key Value
- previous_posts_link returns null when querying custom post type
- Custom Post Type Pagination for Bones Theme [duplicate]
- Custom post type blog pagination conflict
- Custom post type pagination, single page issue
- Pagination for a Custom Taxonomy
- Pagination always adding “Next” link when results come from Custom Post Type WP_query
- Pagination with Custom Post Type
- paging is not working properly on news archives page [duplicate]
- Rewrite Rule & Regex – Extract ‘cat-name’ and ‘page-number’ from http://domain.com/custom-post-type/category/cat-name/page/page-number
- Using pagination with specific custom post type [duplicate]
- Trying to combine multiple WordPress queries
- using post_type with meta_query
- Pagination URL order
- Pagination not working with custom loop
- WordPress Load more posts by ajax not working
- how to limit query_post to first page?
- Paged within a custom content type template [duplicate]
- Ordering by multiple meta keys – Custom post type
- Pagination for event query
- Pagination not working with custom loop
- Pagination not working with custom loop
- Pagination not working with custom loop
- Archive Page Pagination not working
- Classic Custom Post Types and WP-PageNavi
- List of filtered Events is breaking paging?
- Pagination not working with custom loop
- Filtering problem
- WP_Query arguments: Loop through custom post type – get all entries except excluded meta_key?
- loop through custom post-type with two meta_keys
- Pagination not working on homepage
- send user to first page of results when reposting to page?
- How do I paginate a custom post type listing on a custom template page?
- Querying meta values within an array
- Fourth page of custom post type archive page does not exist
- Pagination broke after updateto WordPress 3.4 [duplicate]
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- Problems with pagination for a custom post type
- WordPress custom post type post and category links 404
- WordPress pagination URL
- Pagination not working for archive
- Archive page – problem with pagination
- See the process of creating a taxonomy and tell me where I made a mistake
- WordPress getting problem with pagination [duplicate]
- Pagination not working in custom post type
- add_filter > posts_where works partially
- get content from json api to post
- Pagination not working
- What Is My Fault With This WP_QUERY ? [ Pagination Problem ]
- Pagination for custom post type on multisite not working
- Get Posts ordered by a date custom meta field
- Unable to display paging navigation with a custom post type loop
- Pagination on category pages using wp_pagenavi causes 404 errors
- Check for custom field value in different post type than current one and do something
- Pagination not working only on Archive-Name.php using new WP_Query
- CPT Archive Pagination – Page not found
- WPNavi pagination links not working on custom pages
- Order Wp Query by earliest of 3 dates meta query
- Pagination not working on custom post type archive
- the_post_navigation in single page with multiple taxonomies
- Function to Compare CPT Post Custom Value with Default Posts CF Value
- WP_Query() displaying past post / event
- WP Query Conditionally query meta and taxonomy
- Archive pagination – second page shows exactly the same posts
- Two pagination in one page without AJAX
- Custom post type pagination conflict result in 404
- Meta_query question
- Custom post type pagination not working in index.php file
- WP_Query not using relation key as expected and not producing any results
- Custom post type category pages pagination returns 404
- Query Multiple Post Types and Paginate Newly Created List
- WP Query filtering by custom category not showing all relevant posts
- getEntityRecords/useEntityRecords: How to use CPT metadata?
- Meta query with ACF relationship field
- Meta query sort order is lexigraphical instead of numeric
- “Page not found” while on page 2 from pagination menu
- Issues with Ajax Pagination and Filtering
- Custom post type pagination not working in index.php file