You can try modifying your query using pre_get_posts filter.
function mod_query() {
if ($query->is_main_query() && !is_admin() && is_search()) {
// test print queried search terms
print_r( $query->query_vars['s'] );
$search_terms = $query->query_vars['s'];
$search_terms = preg_replace('/\s+/', '+', $search_terms);
// test print after replacing spaces with +
print_r( $query->query_vars['s'] );
// if all going well you can change the vars again
$query->set('s', $search_terms);
}
}
add_filter( 'pre_get_posts', 'mod_query' );
You may need to modify it to get working. But, this can lead you to a solution.
I am not sure – but you may need to change the name=”motion” to name=”s” as default \
Wordpress name for Search field. I will keep an eye on this thread.
Related Posts:
- wp_insert_term – parent & child problem
- Sort posts by number of matched terms
- Extending wordpress search to include excerpts and taxonomies?
- Removing the “Popular Terms” area from the Taxonomy Edit Screen in the Admin Area
- Extend & Search Native WordPress Image Galleries With Tags and Taxonomies?
- WordPress thinks my custom taxonomy pages are search pages #seo
- Taxonomy Overview Page?
- Use wp_list_categories to list parent categories from actual term
- Amend taxonomy to search in wordpress admin
- Include get_term_link inside search
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- How to perform a search inside a specific taxonomy category
- Custom Taxonomy, shows empty value (home page of website)
- How to get all taxonomies which can be added in menu?
- WordPress Tag or Custom Taxonomy Return All Posts if has that Word in Post Title
- Query posts by taxonomy with current term
- Add Image Uploader In Admin Panel
- Some of my custom taxonomies are not showing but still counted in a WPMU set up
- Tell the difference between a term and page when they have the same ID
- Custom Taxonomy Not Working When added to WordPress Search
- woocommerce custom product category template
- add hirarchy of categories in products grid of visual composer
- Custom Taxonomy index/archive hierarchy
- get the taxonomies terms associated with users
- Search Tool only refreshes Page without showing results
- Add Taxonomy Subcategory To Permalink
- Filter custom taxonomy archive posts by 2nd custom taxonomy using select dropdown
- How to show all post related taxonomies
- Replace taxonomy permalinks
- Custom Taxonomy Term Archive Page Template that Filters 2 or more Taxonomies
- Getting associated taxonomies
- How to use multiple archive templates for a taxonomy?
- problem in taxonomy-{taxonomy}.php pagination
- Add success message to category add screen
- wordpress testimonials
- Removing “s” from search with custom parameters
- Hiding taxonomies with no children WP_Query & tax_query
- Adding custom taxonomy in my existing category URL
- WordPress Custom post query sorting does not work
- Custom Taxonomy Query
- How to get posts which must match both custom taxonomies?
- Multi-select field for Taxonomy can’t save the value
- Passing form inputs into multi-taxonomy query
- Create custom taxonomy and Display in metabox dropdown
- Custom Taxonomy with tax_query
- Redirect to another page using contact form 7? [closed]
- How to rename custom taxonomy URL with extra words
- How to create a custom taxonomy using a shortcode?
- Custom URLs in Custom Search Results
- Override Taxonomy Template
- Custom taxonomy not appearing in menu administration panel
- Search Query for Multiple Terms In Same Taxonomy
- WordPress implode & wp_insert_post question
- Get the taxonomy of the post
- how can i display taxonomy instead of category on my web page?
- Taxonomy Meta Box in User Profile?
- Best structure for entering recipes in a WordPress theme?
- Use an HTML Element To Filter Taxonomies In WP Search
- How Parent Taxonomy automatically added to the post when using `wp_set_object_terms()`?
- Get posts in certain Taxonomy terms for the current page url
- Why is flush_rewrite_rules mandatory after registering custom taxonomies?
- Proper way to update the slug of a taxonomy using register_taxonomy? [duplicate]
- Displaying Custom Taxonomy without a hyperlink
- Get object for a few selected taxonomies
- How to add images to taxonomy terms? [duplicate]
- Why get_page_template() doesn’t show taxonomy template file name?
- Trying to add taxonomy to get_categories() but it’s not working. How to fix this?
- Edit custom taxonomy description programatically
- Get only immediate children (and not grandchildren) of a hierarchical custom taxonomy term
- Get Terms for Page
- Get wordpress taxonomy slug name(s) to use as div class
- Why isn’t the ‘no results’ being shown when a query returns no results?
- Get taxonomy name for the current post
- View the complete list of a taxonomy in the navigation menu
- How to group all terms children’s in custom taxonomy?
- My custom taxonomy page is leading in 404 page
- Show template part if part of term
- one post per term taxonomy
- How can I change the output display of my pagination?
- Clean Custom URL for Serach + Custom Taxonomy
- Advanced search redirecting to another page then filter further
- Corrupted nav-menu?
- Get name of taxonomies of current page
- Filter through custom taxonomy with an array of taxonomy IDs
- Remove taxonomy widget from “PAGE” post
- Add attribute taxonomy through code don’t appear in admin product page
- Search only custom taxonomies
- Best way to redirect taxonomy terms to pages
- Create alphabetical Pagination for custom taxonomy?
- List Top 5 taxonomy terms based on number of post
- How to get attached image to taxonomy..?
- Loop through custom taxanomy in post and display custom fields from posts
- How to get list of only custom taxonomies?
- Get list of taxonomies associated with users
- WordPress autocomplete search with taxonomies
- query_posts that have custom taxonomy and limiting what shows based on the taxonomy
- Dropdown taxonomy lists in admin menu
- Register `product_cat` taxonomy for default post post type
- Geographic search with taxonomy structure [duplicate]
- Add custom taxonomy as a css class