do you have the current page number in your $query array?
for example:
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$query = array( 'paged' => $paged );
Related Posts:
- Multiple WP_Query loops with Pagination
- Pagination returns 404 after page 20
- Pagination with WP_Query is buggy – working for some pages, but not the others
- Get the number of posts from the current page results
- Pagination with 5 posts per page
- Pagination/infinite scroll with WP_Query and multiple loops
- Pagination Not working on Home Page with 2 Query
- Display different number of posts from one category on the different pages
- Pagination not working Search posts
- Transient pagination not working properly
- Injecting content with $wp_query->current_post restarts from zero on paged pages. How to inject content after X posts, regardless of pagination?
- Woocommerce custom loop to show all the products [closed]
- How to bring specific post to front of wordpress loop?
- Pagination stops at page 6
- Paginated HTML Sitemap
- Multiple WP_Query loops with Pagination Not Working
- Posts loop with pagination on a single post page
- Create ONE callback for all page templates, post filter queries + paginated pages, triggering pagination via AJAX
- Pagination is broken and I need help fixing it
- Storing query variable and then using wp_reset_query
- Create A Loop With A Variable Number of Posts For Each Bootstrap Row?
- Reset postdata to custom query in nested queries
- Five posts from a category in footer
- posts_per_page not working for first page of pagination
- How do I get my custom query to work with search results after the first page?
- Stomping WP_Query in author archive to facilitate pagination with custom queries
- 2 queries with counters
- Second loop pagination changes URL, not content
- I am officially missing something about transient posts
- Query Not working as expected
- Paginate pages with dynamic query
- Function the_posts_pagination() not compatible with WP_Query arguments
- How can I have sticky posts while ALSO showing posts from a specific category using one WP_Query?
- Pagination inside the blog page not working
- Custom Query Pagination not working on static front page
- Paging works correctly on local version, but not live?
- Problem with custom WP_Query and underlying pagination/posts_per_page
- 2 Loops on one page – pagination of 2nd loop ignore array of excluded posts
- Pagination returns 404 after page 20
- custom query – offset to pagination
- Pagination not working with WP_QUERY
- Different number of posts showing in development vs production server
- No content found on page 2 of pagination with 1 post per page
- wp_query pagination links producing 404
- Pagination in custom query not working [duplicate]
- Multiple loops on index page with sticky post and pagination
- Pagination problem with multiple loops on the same page
- WordPress Post Looping? [duplicate]
- How to do a loop inside a loop?
- Show number of posts AND number on current page (cannot make it work)
- Pagination only showed when no category is set in wp_query
- Can I force WP_Query to return no results?
- paginate_links() adds empty href to first page and previous link
- Too slow when using both ‘tax_query’ and ‘meta_query’ both in WP_Query
- Get array of posts from the current archive page loop
- In loop: posts have thumbnail AND other variables
- Add inline HTML to posts published within last 24hrs
- Add and in the header while looping over custom query in page template
- Move posts to top of WP_Query if in certain Taxonomy?
- Pagination not working on static page
- ‘paged’ in wp_query doesn’t work
- WordPress pagination link always leads to home page
- Can certain (site-crashing) limitations on WP_Query in shortcode be overcome?
- Implementing an OR statement to wordpress wp_query
- Converting multiple loops into one single loop with pagination
- Get List of all the Authors
- Refine search results using WP_Query
- How to pass many ids in post__in?
- How to show subcategories using loop?
- Pagination of a WP_Query Loop in a child-page page template
- How do I run through a WordPress loop called from a filter function?
- wp_query ‘s’, search filter with pagination is not working
- Check if loop has any categories?
- WordPress query with items from more than one selfdefined taxonomy as `term` argument
- Avoid repeated post on page 2 when excluding one on page 1
- Change query from cat id to slug or name?
- Using Wp_Query without the loop?
- Custom WP_Query id
- Include latest author posts with pagination in single template?
- How does WP generate the default $query in WP_Query based on the URL?
- how to get category`s slug in WP_Query loop?
- How I can repeat 2 HTML templates in a WordPress Query?
- Offset WP_Query by negative 1
- WP_Query orderby random do not repeat infinite scroll – one loop
- Advise on Templates for Custom Queries
- Query WP Page for Buddypress Group Home [closed]
- Why is my pagination /page/2 taking me to index.php?
- How to separate two columns from one content on a page template?
- Avoid removing duplicate posts
- Regarding a custom loop and output HTML tags
- Repeat array inside array through while loop
- Second WP_Query loop shows data from main query
- Meta Query if Values Don’t Exist
- Why does the theme insert the comments section if I don’t reset my custom WP_Query?
- Get post Number with local loop and template
- How to order posts, that have already been filtered by custom taxonomy, by their category names?
- How to set up pagination for a custom loop on a global template (author.php, tag.php, archive.php?)
- Problems with WP_Query, Loop, a condition and Posts per Page
- Custom search (wp query by custom fields)
- Limit the number of posts from a specific category on index.php