Instead of having $q->set( 'posts_per_page', 12 )
in the pre-get-posts function, I use the Read Settings ‘Blog pages show at most’ and that seemed to clear things up.
Related Posts:
- Query with pre_get_posts to get pagination
- Offset Page Loops and Pagination
- WP_Query, Paginate by Custom Field
- When to use WP_query(), query_posts() and pre_get_posts
- Multiple WP_Query loops with Pagination
- WordPress Pagination Not Working – Always Showing First Pages Content
- Reduce or prevent calling of update_meta_cache
- How to add taxonomy filter on the query fly?
- Pagination returns 404 after page 20
- paginate_links() adds empty href to first page and previous link
- How-to exclude terms from the main query the most performant way?
- Pagination with WP_Query is buggy – working for some pages, but not the others
- Get the number of posts from the current page results
- WP_Query and Pagination on a Static front page
- Pagination custom query
- Pagination/infinite scroll with WP_Query and multiple loops
- WP_query and pagination?
- pagenavi with merged wp_query [duplicate]
- Add and in the header while looping over custom query in page template
- Pagination not working on static page
- ‘paged’ in wp_query doesn’t work
- Display different number of posts from one category on the different pages
- Pagination not working Search posts
- WP Query with offset breaks wp_pagenavi or any pagination
- Transient pagination not working properly
- If orderby parameter using pre_get_posts is the same for multiple posts what fallback does the query use?
- Injecting content with $wp_query->current_post restarts from zero on paged pages. How to inject content after X posts, regardless of pagination?
- How to target the default Recent Posts and Recent Comments widgets with pre_get_posts?
- Merged two WP_Queries, posts per page and pagination not working
- How to sort posts in admin by titles with dd.mm.yyyy format?
- How to Modify Taxonomy Archive Page with Search Parameter?
- WordPress pagination link always leads to home page
- pre_get_posts filter meta_query without conflicting existing meta_query
- Including only current user’s posts in search
- Create ONE callback for all page templates, post filter queries + paginated pages, triggering pagination via AJAX
- pre_get_posts Remove tax_query Completely
- Pagination of a WP_Query Loop in a child-page page template
- WP Pagination on Posts Search Results Page resulting from AJAX WP Query
- Five posts from a category in footer
- Show Sticky Post at the top but do not show again in the loop?
- Remove category from query (show all posts in archive.php) pre_get_posts()
- wp_query ‘s’, search filter with pagination is not working
- hide custom post types with specific meta key ON admin backend
- WP_Query ignoring tax_query when is_singular
- Cutom wp_query for geolocation search, pagination not working
- Applying posts_clauses filter to specific queries only
- Help ordering Post loop by two meta values
- Pagination inside of a edit page
- Avoid repeated post on page 2 when excluding one on page 1
- WP Query to have sticky posts first, with pagination and having a joint ‘posts per page’ arg with main loop
- New WP_Query calls Pre_get_posts filter twice
- How do I get my custom query to work with search results after the first page?
- How to cache wp_query with pagination using transients?
- Removing duplicate values between two wordpress queries
- pre_get_posts – Trying to get property of non-object warning
- Include latest author posts with pagination in single template?
- Stomping WP_Query in author archive to facilitate pagination with custom queries
- Yoast primary category query modification
- Multiple meta_key ordering with pre_get_posts
- pre_get_posts – editing query, tax_query
- Pagination in html table is not working
- Child pages not affected by orderby
- WP_query paged pagination with excluded category still counts it
- max_num_pages says 4, yet I am only able to navigate to the third page
- Paginate pages with dynamic query
- Determining what post is displayed out of total posts found
- How to apply pre_get_posts to a custom query?
- Why is my pagination /page/2 taking me to index.php?
- paginate_links appearing on page but it doesn’t actually paginate – pagination on a static page with a dynamic `post_type` argument on a static page
- Excluding posts from search results page with meta query not working
- WordPress Sub Category Archive, Show Extra Empty Page Number in Pagination
- Pagination unique to a widget
- Why pagination is not working with tax_query param?
- paginate_links method doesn’t show second page of my custom wp_query
- Wp_Query Post per page not working?
- Pagination Shows Up But Won’t Work on Custom Gallery Page
- Pre get posts sort by meta key returns no results if meta key does not exist
- Pre_get_posts only show posts by administrator roles
- Modify a query with no results in pre_get_posts
- How order by works?
- Custom Order Current Query: By Meta Key and Category
- Combine WP_Query with array of custom data to single loop without breaking the pagination
- Pagination returns 404 after page 20
- Custom Post Type shows pagination (w/404) or posts_per_page query, but not both
- WP_Query with Pagination and orderby meta_value_num showing duplicates
- Query post Pagination Problem
- wp_query – Modify $query to include duplicate content
- Filter WP_Query output before it is accessed (pre_get_posts)?
- Horizontally paginate through sets of blog posts?
- Pagination error WordPress multiple loop
- Comments orderby comment date not working
- Switched from query_posts to wp_query, pagination no longer working
- Pagination With Custom WP Query not functioning
- Query specific number of posts for each post type in specific order
- Avoiding page loop
- Custom query (author is post_author or meta co_author) with Pagenavi pagination
- WordPress Post Looping? [duplicate]
- Pagination showing same posts despite changing page
- error with $query->have_posts()
- Pagenavi with archive page