Couple of small corrections:
$wp_query
is a global variable so you need to declear it as a global and i believe the query var is paged
not page
. so,
change
$temp = $wp_query;
$page = get_query_var('page');
to
global $wp_query;
$temp = $wp_query;
$page = get_query_var('paged');
Check if that works. Also I prefer to use Singular for CPT names. movie
instead of movies
.
Related Posts:
- Custom post type pagination, single page issue
- Custom post type archive 404’s with paginate_links
- Number of pages – multiple (custom) post types
- Custom permalink with pagination
- Related posts by author pagination not working on the production site
- Secondary loop pagination on custom post type single post gets redirected to first page
- Pagination Doesn’t Work
- Numeric pagination custom post type
- Posts in Multiple Columns and Rows with one single loop
- Custom wp_query pagination – next_posts_link() or wp_pagenavi() always empty
- custom post type paging not working past page 3
- WP_Query pagination using only numbers instead of /page/1 on URL
- Pagination not working
- Custom query form submission pagination
- Paginated Taxonomy Term Archive including one post per term
- Help with CPT template pagination
- Unable to get paginate_links working with a custom query [duplicate]
- Pagination on category page with custom post types
- How to add pagination to wp_query [duplicate]
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- Pagination on a custom post type loop
- Previous/Next Link by Meta Value in CPT
- Pagination for Custom Taxonomy Page [duplicate]
- Pagination on with query_posts in custom post type template
- Custom taxonomy rewrite give pagination 404
- Woocommerce search pagination not working
- How do you paginate a query grouped by month?
- Pagination issue on category.php using custom post type query
- Pagination with custom query, custom search form, single and pages, ajax and no plugins
- can these 3 queries be re-written as 1 query?
- pagination not working for category.php (custom post types in categories)
- Custom WP_Query always respond with 200 status even when no entry
- 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
- Custom post type and custom taxonomy 404 on page 2
- Pagination for search results of custom post type [duplicate]
- Custom Post Type Archive Pagination
- All blog posts are not showing up
- Single parent post lists child posts with pagination
- Custom post type pagination error
- Previous / Next Links For Custom Post Type Sorted By Meta_Value
- custom taxonomy pagination 404 error
- Pagination in custom post type archive.php not working
- Pagination Not Working When Used With WP_Query() `offset` Property
- Numeric pagination custom post type
- Problems in paginate_links with custom query loop and MB-Relationships
- WordPress doesn’t respect Page slug in custom post type url pagination. Keeps getting removed
- Make pagination work as a carousel (custom query)
- Custom Post Type shows pagination (w/404) or posts_per_page query, but not both
- why custom post archive gives always no more than 10 posts despite of paging settings?
- query and paginate multiple post types
- How can I pull information from my loop and divide them seperately?
- Custom post type blog pagination conflict
- Pagination always adding “Next” link when results come from Custom Post Type WP_query
- Paged within a custom content type template [duplicate]
- Listing all custom post types using a specific term on the said term’s template page, in groups
- Pagination not working on homepage
- 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]
- how to pass args for archive.php query?
- Archive page – problem with pagination
- Meta query with boolean true/false value
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- category__in not working on custom post type
- How to list/show all custom post types regardless of category?
- Date query for a custom meta field
- Querying Posts by Taxonomy From Alternate Network Site
- Combine tax_query and meta_query in WP_Query
- Custom Post Type .current-menu-item not applying on Custom Post Type Archive Page
- Exclude the parent custom post-type posts only
- Woocommerce query specific product from specific category
- How to load custom post archives sub-pages with ajax?
- Including Custom Meta with posts_where query
- Very Slow Page – How to Optimize # of Queries?
- Display upcoming Events for next 7 Days
- Orderby CPT custom fields not working
- How to order WP_Query by parent for hierarchical Custom Post Type?
- How To Show All Custom Post Types In A Category Instead Of Pagination?
- Add Custom Post Type of specific Custom Taxonomy to regularly blog loop
- Custom post_type search pages
- How to query for posts (hierarchical custom post type) that have children but are NOT top level?
- Create a WP_Query where if the first value of the first row is equal to the second compare other value
- Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php
- Display custom-post type based on the Title matching the current selected value
- WP Query filter search. Result show all posts instead just custom post type
- Custom post pagination not working
- How to override post-new.php with custom template
- Pagination in wp-admin for CPT
- Why get_posts() returns empty array while I am trying to get posts from some specific taxonomies and work properly with others?
- Add pagination to custom page
- How to query posts by meta keys AND under specific category?
- Shortcode display CPT Query only showing 1 post?
- Query stopped working
- Custom post type navigation on static page
- Custom pagination [duplicate]
- WP_Query and two custom fields returns no posts
- WP Query + custom fields: How to query event posts from the current date backwards 6 months and organize it month by month?
- How do I get parameters from the URL?