http://codex.wordpress.org/Function_Reference/get_search_link was what I was looking for.
Related Posts:
- Search pagination rewrite to fix 404
- add_rewrite_rule – working fine but broken for pagination
- How to fix pagination after rewriting url? ie. www.site.com/players/type/pro/page/3/
- List posts based on first letter of posts
- Why am I getting a 404 on anything past page 1 of my query?
- Pagination: /tags/tag_name/?paged=2 gives a 404 error
- Not refreshing content pagination on search result
- How to stop WordPress returning 404 on paginated pages after using add_rewrite_rule()?
- rewrite url with parameter or pagination beyond certain value does not work
- stop pretty pagination rewrite site.com/cat/2 => site.com/cat?page=2
- 404 when using pagination in a category
- WordPress triggers 404 on page 2 for custom search query
- Search page pagination does not work
- wordpress custom search page pagination returns 404
- Pagination in author, category, archive and tags pages does not work
- Search URL redirect problem
- what code to add to search.php
- Problem with Paging 404
- Search, pagination, the last pages leads to 404 page
- get_posts custom paging
- Prevent WordPress to remove query vars from url
- Search pagination link redirecting to a link that doesn’t work with pagination
- Pagination diplays always 2 pages
- Custom Query & Rewritten URL Pagination 404
- Search URL gives 404
- Search engine not working
- URL rewrite breaking pagination
- How to display pagination links for WP_User_Query?
- post pagination names, not numbers
- Implementing a general Table of Content across single paginated post pages
- Custom WP_Comment_Query with pagination and orderby?
- Pagination: How do I always show ‘previous’?
- Varying the number of posts per page from the first one
- Using pagination with get_posts on page type
- Paginate tags page
- How to display next and prev pagination links with WP_User_Query?
- Custom taxonomy list and sortby letter pagination problem
- Custom Page Template for “Older Posts” Pages
- How to change title tags on paginated posts?
- paginate_links() outputs extra empty pages on custom loop
- add spans and characters into paginate_links
- Add ‘articles’ prefix before blog posts url without affecting pagination
- wordpress Next/Previous post in same category not working
- WordPress Pagination not working, any ideas?
- Customize WordPress Core Template
- How to add a zero before numbers in WordPress Post Pagination?
- next_posts_link does not work when querying a specific category
- Tabbed content with Pagination
- Offset a post in the loop, with using PageNavi Plug-in
- Last page in pagination does not match max_num_pages – the overall post count is less according to pagination
- Cutom wp_query for geolocation search, pagination not working
- Frontend sorting
- Pagination not working in custom page, only working in post page
- Only show Previous & Next button in Pagination
- Adding a rewrite rule to page that has no fixed variables and pagination
- How do I get my custom query to work with search results after the first page?
- Pagination isn’t created when there is only one page of posts
- Different layout on second page
- Pagination Not Working When Modifying Loop Based on Post Category
- custom posts archive pagination links /page/2/ ends up in 404
- Pagination for Custom WP_Query not displaying page 2 results
- pagination error in taxonomy: Warning: Division by zero
- Pagination for custom post types – url rewriting
- Pagination Links Not Showing Up on single.php posts on iOS Devices
- next_posts_link(); & previous_posts_link(); not working properly
- Ending Pagination loop in PHP
- Paginate the_content automatically? [duplicate]
- pagination links not displaying
- WordPress paginate_links function: How do i ensure the page number is not less than 1 and not greater than last
- Pagination on page 2+ only
- How to replace pagination with Next/Previous for multi page posts?
- Rewrite wp function
- How to Add Pagination to Page?
- Disable and redirect pagination of Home
- Can’t Add Pagination
- How to hide empty pagination button when no previous page
- Why is there a 404 on page 2+ for my search page?
- Pagination not working on homepage, On other pages it is working
- Tags pages for different Custom Post Types and WooCommerce Products sharing Post Tags
- next and previous category name and link parent only wordpress in archive page
- WP_User_Query counter not updating with pagination
- Remove Number Of Pagination [closed]
- I would like help getting my pagination to work
- Display Both next previous and number in single page [duplicate]
- Need help on wordpress pagination script
- Update Gallery Randomly in every hour with no duplicates?
- Custom page pagination based on Kriesi pagination
- Test for if you’re on 1st page of paginated post (with nextpage quicktag)
- Pagination issue [duplicate]
- Pagination link problem when reaching the second page
- Add next and previous post links on pages like category, tags or archive pages
- Stop loading more posts if none left AJAX
- Intercepting $_GET variable from custom pagination
- Default pagination in Home/Front page
- Making a Killer wp_link_pages
- pagination leads to 404 page
- Show pagination in WP_Query
- How to automatically load more data when users reaches at the bottom of the page of the wordpress site?
- Stop pagination when static homepage is set
- Is ‘pm’ used by core?