Well, I was able to solve this with a custom query string parameter: ?view=2 for the 2nd page, that just seems cludgy when the system already has a route for /page/2/ for example. It’s even more annoying to me that ?page= and ?p=, the most logical names for a paging query parameter, don’t work. WordPress refuses to accept those and strips them from the URL.
Related Posts:
- Issue with using add_rewrite_rule() for post querying custom fields
- I want to create a filter for the query string is this possible?
- Rewrite rule for query params
- Add rewrite rule for archive search
- WordPress add_query_arg from ajax and make url friendly
- Query Post interferes with Pagination
- My custom pagination not displaying
- Pagination adds search query (again)
- How to get all images in Media Gallery with pagination?
- Sort loop with query in the link
- Rewrite Query_Var URL Parameter with Slug
- WordPress: paginating array using a foreach
- Get URL parameters with rewrite rules
- “Page Not Found” with multiple last pages of query
- How to Group Posts by the First Letter or Number?
- Custom query_var causes displaying posts archive on front page
- What is the most efficient way of implementing a favorite post system?
- Why does get_the_time(‘F j’) return November 30 for all posts?
- Query by one meta_key and sort by another (possibly NULL value)
- Search Terms – Querying on either description__like OR name__like in the same Term Query?
- Query & Sort Comments by custom comment meta
- Pagination Doesn’t Work
- is_archive() doesn’t work on public query var archive pages?
- How to get category link without a database query
- get_query_var(‘paged’) giving same result
- How to count get_users query?
- Possible to get posts from multiple meta keys/values in a single query?
- Difference between fragment caching and wp_cache
- Why am I getting a 404 on anything past page 1 of my query?
- Pagination problem
- How to display all posts with today’s same month and day only?
- Select User by Joining Multiple Meta Value Results
- Show featured image as background image from postQuery
- Using $wpdb->update but confused on the WHERE in and SET
- You have an error in your SQL syntax – Help with query
- Make one query for adding entries to database
- remove query arg from url after set query
- add_query_arg() and empty variables inside
- Query Strings and Woocommerce
- Style Post Differently In Query
- List all posts from past week grouped by sub-category
- Query Custom Post Type posts by Keyword/url slug
- Pagination with $_POST and $_SESSION
- WordPress post type “event” query string fix?
- Changed pagination URLS to use p= instead of paged=
- order one custom post type by modified time of another post type
- is_search called incorreclty
- Function to delete a post, it’s children and it’s grand children (half way there already)
- Query to Get All Users from wp_users With NO matching user_id In wp_usermeta
- Nested loop : wich way/order?
- Multisite pagination issue by multi query archive 404
- Exclude categories from the_category();
- How can i show all categories using wp query?
- All in One Calendar Plugin Custom Post Type Query [closed]
- Get Posts from Last 24 hours and Sort them via GD Star Rating
- Query returning same results even though the ID changes
- Why my query ‘REPLACE INTO…’ does not work?
- Restrict query to last day with posts
- Custom query object with Simple-Fields custom date field
- How to read the value of a WordPress $query associative array (hash) key
- Random Page Rewrite
- Query posts based on previous query
- Waypoints + infinite scroll with custom query
- Customizing the_tags output?
- Querying with WP query using meta key price
- Re-sort get_posts query results
- How do I get all results from my query
- Taxonomy filter under Polylang
- How to create an overview of posts with the same tag?
- create a link to a random post within the current category
- How to “orderby” the first array in a meta_query that uses multiply keys?
- Pagination not working on custom post types with rewrite slug
- JetEngine Query Builder – order by value from repeater
- Change pure SQL database query to WordPress post query?
- Pagination of custom page with custom fields query
- Filter orders by modify date
- How to add url parameter to every search query in SearchWp?
- Display data from phpMyAdmin with WordPress
- Heavy meta query causing SQL crash
- Sort by postmeta on when searching
- Pulling an ACF into a query
- Speed up search query that searches in post meta?
- Category_in return empty
- Prevent WordPress to remove query vars from url
- Querying users by meta value and getting a strange answer
- rewrite_rule – working fine but broken for pagination
- Using cron for multiple queries
- very slow wordpress query with default query
- Pagination not working with custom loop
- Custom Query problem access the values
- Set posts per page for parent category and it’s all children
- Exclude sticky posts from query
- Pagination not working with custom loop
- If more than 1 image show post link?
- How to query different categories on index?
- How to specify what kind of is_single post?
- Can’t See Media Queries with Inspect Tool [closed]
- Print data from wordpress sql query
- Can I create my own query in wordpress with traditional methods?
- How to show sticky posts on all pages of the pagination, not just the first page?