Just briefly looking at the code, the first thing I spotted is 'post_type=game&posts_per_page=4&paged=$paged'.
Because you’re using single quotes, paged will never equal the current page.
You should use double quotes so the $paged variable is actually used in your query:
"post_type=game&posts_per_page=4&paged=$paged"
You can learn more about single quoted and double quoted strings in the PHP documentation.
Related Posts:
- WP_Query Pagination on single-custom.php
- Have different number of posts on first page
- Custom pagination for custom post types (by names)
- next_post_link() not working for single custom post type post
- Pagination with custom post type not working
- Custom post type archive 404’s with paginate_links
- Changing the URL Structure of a Paginated Custom Post
- Number of pages – multiple (custom) post types
- WordPress search: pretty URLs (permalinks), custom post types and pagination
- Multiple Paginations on one Page
- Custom permalink with pagination
- Custom Post Type Rewrite Rule for Author & Paging?
- Newer/Older posts links display same posts on every page
- Custom wp_query pagination – next_posts_link() or wp_pagenavi() always empty
- Custom post type archive with pagination?
- Pagination on a custom page template
- Pagination problems with multiple custom post type archive pages
- Pagination in plugin with custom post type
- Fix custom query pagination without changing site-wide posts-per-page settings
- Display “Post 2 of 4” on single post page?
- posts_nav_link on single post template
- Pagination problem in custom post type used as front page
- Custom Taxonomy archive returns 404
- Custom Post Types, Page Templates and Pagination. Why do I get a 404 Error?
- Pagination with custom post types results in 404 issues
- Custom query form submission pagination
- Paginated Taxonomy Term Archive including one post per term
- Pagination links not showing on custom post type admin list
- Pagination on Custom Post Type: 404 Error
- Pagination in a Shortcode. Get_next_posts_link not working but get_previous_posts_link works fine right next to it
- Custom post type archive page pagination
- How to load custom post archives sub-pages with ajax?
- Pagination on category page with custom post types
- Archive template for custom post type only lists first 10
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- How can i change the output of posts_nav_link();
- How to alter WP-JSON main query or best practise for custom endpoints
- Pagination is not working in custom post type
- How to display all posts from standard posts to custom post types in a loop with pagination?
- Previous/Next Link by Meta Value in CPT
- Custom post type not displaying all entries
- Custom post type (with parent-child relationship) singular page with pagination
- How do I move/order posts with a tag to the end?
- Add Pagination on Custom Post Type Archive
- Woocommerce search pagination not working
- How do you paginate a query grouped by month?
- How To Show All Custom Post Types In A Category Instead Of Pagination?
- Custom Post Type Pagination Paginates Only in URL Structure
- Querying Custom Post Type, ordering by Custom Taxonomy Pagination Not Working
- can these 3 queries be re-written as 1 query?
- Pagination broken by naming conflict between CPT and Page
- Pagination Error : Duplicate argument being outputted
- Pagination doesn’t function properly for archive of a custom post type set as the front page
- Pagination hitting 404 page on /page/4
- Custom post type and custom taxonomy 404 on page 2
- Using Pagination for Custom Post Type and keeps returning 404
- Pagination for search results of custom post type [duplicate]
- Difference between page and paged
- All blog posts are not showing up
- Custom Post Type, Pagination and 404s?
- 2 custom post type paging in 1 custom taxonomy
- Sticky posts limit query and pagination for a custom post type
- Pagination in custom post type archive.php not working
- 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)
- how to skip a CPT element from the pager by custom field
- Pagination not working in custom post type. Help
- Custom Post Type Pagination getting 404 error
- Numeric pagination custom post type
- Problems in paginate_links with custom query loop and MB-Relationships
- WordPress custom post type taxonomy paging
- WordPress doesn’t respect Page slug in custom post type url pagination. Keeps getting removed
- Custom Post Type canonical link / pagination redirecting to root
- Custom post pagination not working
- CPT/Taxonomy/Postname permalink structure makes pagination break
- Use WP pagination functions on a custom page template
- How to get a custom post type archive paged when using a custom field for post sorting?
- Pagination in wp-admin for CPT
- Pagination not working (page/2 retunring 404 page)
- Add pagination to custom page
- Paginate Custom Post, Old and New buttons not displaying
- Pods pagination erases my sub menu
- Custom Post Type shows pagination (w/404) or posts_per_page query, but not both
- Pagination in custom post type page template
- query and paginate multiple post types
- Custom post type archive pagination with HTML5Blank theme?
- Custom Post Type Pagination Problem in Admin Section
- Paginate custom taxonomy category with wp_custom_pagination
- Custom post type navigation on static page
- Custom pagination [duplicate]
- Pagination not working with custom loop
- Pagination not working with custom loop
- Pagination not working with custom loop
- send user to first page of results when reposting to page?
- Fourth page of custom post type archive page does not exist
- Pagination broke after updateto WordPress 3.4 [duplicate]
- Unable to display paging navigation with a custom post type loop
- Custom post type pagination conflict result in 404
- Custom post type pagination not working in index.php file
- Custom post type pagination not working in index.php file