Just change the action
attribute of your search form in your theme, for example;
<form action="<?php echo home_url( $GLOBALS['wp']->request ); ?>" method="get">
This will dynamically output the URL of the current request, so that when a user searches, the query string is simply appended to it, rather than pointing back at the root.
Related Posts:
- Using pre_get_posts to rewrite search query to display posts from multiple taxonomies
- Exclude Specific Term from Search
- WordPress database error: [Not unique table/alias: ‘wp_postmeta’]
- WordPress Search – display taxonomy terms in results
- How to find taxonomy name using only taxonomy TERM ID (or taxonomy term name)
- Sort posts by number of matched terms
- How to add custom taxonomy to search
- Taxonomy.php issue with search and filters
- Extending wordpress search to include excerpts and taxonomies?
- How to filter WordPress search, excluding post in some custom taxonomies?
- how to search in custom fields & custom taxonomy for custom search
- Search by type posts and taxonomy
- Creating a custom search form
- How to implement custom search with input fields?
- Add multiple taxonomy filters to edit.php that support search
- Extend & Search Native WordPress Image Galleries With Tags and Taxonomies?
- Custom Taxonomy Not Working When added to WordPress Search
- Search Tool only refreshes Page without showing results
- WordPress thinks my custom taxonomy pages are search pages #seo
- Removing “s” from search with custom parameters
- Passing form inputs into multi-taxonomy query
- Custom URLs in Custom Search Results
- Search Query for Multiple Terms In Same Taxonomy
- Use an HTML Element To Filter Taxonomies In WP Search
- Why isn’t the ‘no results’ being shown when a query returns no results?
- Clean Custom URL for Serach + Custom Taxonomy
- Advanced search redirecting to another page then filter further
- Search only custom taxonomies
- WordPress autocomplete search with taxonomies
- Geographic search with taxonomy structure [duplicate]
- search using multiple taxonomies and keyword
- Taxonomy or Custom Field
- Multiple Drop-Down custom taxonomies search
- Filter with two id of the same value CPT UI(taxanomies)
- Amend taxonomy to search in wordpress admin
- Include get_term_link inside search
- Product custom taxonomy is not found when space in name
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- Search custom taxonomy via query-string?
- How to exclude woocommerece product category in search results?
- WordPress custom taxonomies new/edit post autocomplete
- Post not showing in my custom advanced search
- Include attachments with a custom taxonomy in search
- Custom taxonomy displayed in search results
- How to perform a search inside a specific taxonomy category
- Custom Taxonomy, shows empty value (home page of website)
- Advanced WordPress search form based on custom taxonomy and custom meta value
- Custom Search only for my Custom Taxonomy Page – data
- Search and filter with custom field in taxonomy
- Custom Taxonomy Endpoint Pagination using paginate_links()
- Check if a post has any term in this custom taxonomy?
- Query Custom Post by Taxonomy Category
- Using WordPress to make a “Product Search” type navigation drilldown
- Custom Taxonomy Leads to 404 Page – Permalink Structure Flushed
- How to get the page slug of the current archive page for a custom taxonomy
- Display a custom taxonomy as a dropdown on the edit posts page
- wp query with multiple taxonomy?
- How to show taxonomy meta on frontpage?
- Is there a way of storing posts and pages under the same hierarchy?
- How to search from specific post type with tags?
- Automatically assign taxonomy term if custom meta value exists
- Dynamically tax_query terms
- WP Query with custom taxonomy
- Make tag cloud links consistent
- Insert form checkbox at bottom of taxonomy edit term page
- Show only 1 term of a current posts taxonomy
- Taxonomy archive showing no results
- Autogenerate Front End Form Field With jQuery
- Changing taxonomy term by slug (wp_update_term)
- Failure to add term meta
- Filter custom taxonomy archive posts by 2nd custom taxonomy using select dropdown
- How to show all post related taxonomies
- get_term_children returns unknown int though term has no child
- Limit number of posts in wp loop
- Custom taxonomy pagination
- Get the taxonomy of the post
- using wp_tag_cloud with custom taxonomy
- Custom taxonomy not showing terms in post area
- Get object for a few selected taxonomies
- Add a term to list in block editor taxonomy sidebar
- Also show terms that are related to draft and pending posts
- Breaking Bootstrap Grid at Post Count with Tax Terms
- W3 total cache – white screen of death when trying to show certain taxonomies [closed]
- Custom taxonomy page not working
- Displaying the post count of all custom taxonomy terms in a list format
- Get child product categories from parent product category for CUSTOM TAXONOMY archive page
- How to get related taxonomies based on a category with mysql query?
- Reorder a page of posts of a certain taxonomy/value by a custom field
- Get children of taxonomies
- Unregistered taxonomy apears still as emtpy filter list
- How to paginate with an query var appended to permalink?
- Use custom taxonomy terms as parent for pages
- add_rewrite_rule using custom taxonomy and year
- switch statement for taxonomy content
- create taxonomy
- limiting characters shown in taxonomy descriptions
- What is the current page’s Taxonomy?
- How do I query multiple specific posts from a custom taxonomy?
- Later change of taxonomy slug base not changing permalink
- Show taxonomy term meta field on single template