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
- Is it possible to paginate posts correctly that are random ordered?
- How to determine if I’m on the first page of pagination?
- Post_count only shows the number of results per page
- Changing pagination list class
- How to determine if theres a next page
- WordPress /page/2 404 pagination problem – what to do?
- Paged posts – how to use numbers and next/previous links?
- Why do you need an unlikely integer in paginating?
- Change the “page” slug in pagination
- How to display pagination links for WP_User_Query?
- How to show a single post on the front page but have normal paging?
- Custom Taxonomy Endpoint Pagination using paginate_links()
- How to add CSS Class to previous_post_link or get previous/next post link URL
- Pagination resolving to first page only
- how to get pagination link url?
- Problem with add_rewrite_rule and pagination (paged and page query_vars)
- paginate_links() don’t properly work in search.php?
- How to get the number of Pages in a single Post Pagination?
- Aggregate comments, with pagination
- post pagination names, not numbers
- How do I Paginate Search Results for Custom Post Types?
- Display “Page 3 of 5” for a paginated post
- Implementing a general Table of Content across single paginated post pages
- Paginate links with “ugly” and “pretty” permalinks?
- Pagination of RSS2 feed
- Strange paginate_links behavior. First page link is always whatever page I’m on, all other links are correct
- How to Group Posts by the First Letter or Number?
- Custom WP_Comment_Query with pagination and orderby?
- Pagination: How do I always show ‘previous’?
- Next/Previous Links in same category
- How To create ajaxed wp-pagenavi?
- Disable wordpress pagination URL rewrite for specific page
- Single Page View for Paginated Posts
- How can I see all of a post’s comments on a single page as a reader, if pagination is enabled?
- Using paginate_links() to generate “1, 2, 3 … 10, 20, 30, 40… 55” paginations
- Change class=”page-numbers” in pagination
- Check if on last page of paginated post using wp_link_pages
- Custom Search Page Pagination Not Working
- Varying the number of posts per page from the first one
- Using pagination with get_posts on page type
- Rewriting search and pagination base
- Pagination for sub-pages
- Pagination not working for Custom search form & custom result template
- Modifying WP_LIST_AUTHOR Functions to output all users in a grid (and Paginate)
- How to get post pagination like this
- How to paginate a list of tags
- Pagination Doesn’t Work
- Pagination Not Displaying on Custom Term Archive
- Non existing blog pages are not redirected to 404
- Pagination broken when merging search results with additional WP_Query
- posts_per_page & pagination conflict
- How to implement pagination eg. newer – 3 – 4 – 5 – 6 – 7 – older
- How do I sort multiples pages?
- Problem: ( kriesi ) pagination doesn’t work in homepage [duplicate]
- Custom loop pagination issue ( pagination not showing up )
- WordPress pagination on custom script
- Combining WordPress pagination functions for archives and search results
- Pagination is not working wp_query custom fields values
- Broken pagination
- Passing custom args in paginate_links
- Limit number of pages in pagination
- Custom Post Types: pretty search URLs and has_archive
- wordpress Static Page pagination
- Static front page with recent posts pagination
- Custom Post Type pagination when CPT ‘rewrite’ rule and a page have the same slug
- How to ignore or disable nextpage tag?
- Paginate tags page
- Custom Permalinks Break Search Pagination
- Search results with custom loop don’t update when paged
- Pagination wont work with search results template [duplicate]
- pagenavigation not showing the next page just linking back to the main page [closed]
- Category pagination shows same posts
- How to display next and prev pagination links with WP_User_Query?