As far I read in your comment, it isn’t requires for you to handle it with a custom query. So if you register your custom post type with 'has_archive' => true, then you can just reach the archive of the custom post type at http://www.yourwebsite.com/your-cpt-slug/.
Important: Remember to flush the rewrite rules after you change somethign related to your permalinks. You can do it just visiting Settings > Permalinks
See how register_post_type works for any doubt, it’s always lighting.
Related Posts:
- How do I Paginate Search Results for Custom Post Types?
- Pagination throws 404 error on custom taxonomy archive pages
- Custom Post Type Pagination Not Working On Archive Page
- Custom Post Type Archive Page: Set Posts Per Page, Paginate
- Archive page…limiting posts per page
- Shortcode Displaying Custom Post Types
- Related posts by author pagination not working on the production site
- Pagination throws 404
- Pretty paged permalinks in custom post type loop
- Custom Post Type pagination when CPT ‘rewrite’ rule and a page have the same slug
- custom post type paging not working past page 3
- Custom Post Type, Two categories, Two columns with Pagination
- Pagination gives 404 error
- Creating a simple pagination for custom post type templates
- Pagination not working
- Pagination Custom post type
- Custom Post Type Pagination & duplicate posts
- Unable to get paginate_links working with a custom query [duplicate]
- Custom post type, permalinks & pagination, going wrong
- Repeating posts when paginating random posts
- How to add pagination to wp_query [duplicate]
- Pagination for custom php code
- Pagination for Custom Taxonomy Page [duplicate]
- Pagination on with query_posts in custom post type template
- Pagination of Custom Post Types not Changing Posts
- Paging doesn’t work?
- Help with Elementor Pagination CPT archive 404 problem
- Custom taxonomy rewrite give pagination 404
- Next and Previous Posts of Same Parent
- How to handle paged param in post and custom-post-type?
- List all posts in a custom post type with pagination (the correct way)
- Category with post type pagination returns 404
- Pagination issue on category.php using custom post type query
- Next Post links not working in custom post type shortcode
- Custom Post Types strange pagination problem
- Custom post type pagination – always return first page
- Cant get paginations on single.php to work with my custom post types
- 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
- Can’t use pagination with custom taxonomy
- Pagination 404 on Index with custom query
- Custom ordering of CPT items not matching with the ordering of its pagination
- Pagination doesnt work in custom post type
- Break up posts per page in two sections
- 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?
- Custom Post Type Archive Pagination
- Taxonomy rewrite pagination 404
- Custom Post Type Pagination on Single.php?
- Custom post type pagination error
- Previous / Next Links For Custom Post Type Sorted By Meta_Value
- Add pagination to custom single post template
- get_query_var(‘paged’) return 0 in custom category page
- Custom archive page for custom taxonomy and pagination issue
- Custom post type paging return home page
- Pagination on custom post type without plugin
- pagination problem listing custom post types of taxonomy in wordpress
- Permalink for custom post type pages not working
- How to display custom post type pagination buttons when processing AJAX request
- Why is my loop not populating the page with my custom taxonomy terms from my custom post type?
- 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
- Pagination with a custom post type
- next_posts_link() always generates second page link on custom post type
- Pagination URL in Custom Content Type
- 2 custom posts types, in their own columns, one pagination for both
- Pagination functions won’t work
- pagination for a custom query
- yet another: custom post type with pagination not working in WordPress
- 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 fault in custom post type archive page [duplicate]
- Pagination in custom loop for custom post type throwing 404 error
- Custom post type blog pagination conflict
- Custom post type pagination, single page issue
- Pagination for a Custom Taxonomy
- Pagination URL order
- WordPress Load more posts by ajax not working
- Pagination for event query
- Pagination not working with custom loop
- WordPress custom post type post and category links 404
- Pagination not working for archive
- Archive page – problem with pagination
- WordPress getting problem with pagination [duplicate]
- 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
- Query Multiple Post Types and Paginate Newly Created List
- “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