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)
- Using wp_query is it possible to orderby taxonomy?
- get_the_term_list without links in 3.1
- custom post type taxonomy “tag” archive : no post found
- Get taxonomy names by post id
- How can I select a primary category?
- Return only the custom sub-term for custom post type, do not echo term-parent
- Get total number of comments from posts in a specific custom taxonomy
- Formating the_terms() function output
- Custom taxonomy on users with UI
- Post tags saving as both tag name & tag ID on post update when tags are displayed as checkboxes
- Creating a custom Admin panel
- Taxonomy Relationships
- Add custom taxonomy to default category taxonomy?
- Display sub-taxonomies based on SELECTED parent-taxonomy
- Checking if a Page has an Associated Term?
- What are terms and taxonomy, how they related to post and how these three are stored in database?
- Get terms ordered by post date
- Taxonomy.php issue with search and filters
- How can I get WP to build a feed based on multiple taxonomy terms
- Change permalink of post if it belongs to custom taxonomy
- Get pages only with a specific taxonomy
- Creating an Archive using a Custom Taxonomy
- Share taxonomy between user and posts?
- How to obtain the link/URL to the feed of a custom taxonomy?
- get_term_children doesn’t return an array of children terms
- List Recent Post Titles from Custom Taxonomies?
- Use get_the_terms to list subcategories of custom taxonomy
- Get taxonomy parent using child slug (from merged taxonomies)
- Creating a custom search form
- How to implement custom search with input fields?
- Custom taxonomy [year] is directing to yearly archive
- Display Taxonomy Terms in an option tag with value being the slug
- How do I keep the page I’m on within the URL when running a search on a taxonomy?
- Query posts by taxonomy with current term
- get the taxonomies terms associated with users
- problem in taxonomy-{taxonomy}.php pagination
- Add success message to category add screen
- wordpress testimonials
- Best structure for entering recipes in a WordPress theme?
- Get posts in certain Taxonomy terms for the current page url
- How to add images to taxonomy terms? [duplicate]
- Why get_page_template() doesn’t show taxonomy template file name?
- Edit custom taxonomy description programatically
- Get taxonomy name for the current post
- Get name of taxonomies of current page
- How to get attached image to taxonomy..?
- How to get list of only custom taxonomies?
- Geographic search with taxonomy structure [duplicate]
- Query custom taxonomy for category including children
- Query Multiple Custom Post Types & Exclude a Taxonomy Term
- Only display latest custom taxonomy post
- How can I get Taxonomy Images to work with ‘orderby’ argument?
- search using multiple taxonomies and keyword
- How to combine taxonomies into URL?
- Unique taxonomy for post
- Product custom taxonomy is not found when space in name
- Add terms to a taxonomy archive from within the same taxonomy
- Show recent posts from a custom taxonomy in wordpress
- Search custom taxonomy via query-string?
- Fill New Taxonomies
- add pagination in wordpress page template
- how do you pull data from two taxonomies?
- problem : Custom taxonomy template not showing
- Custom dropdown list taxonomy not saved
- How to get all the terms from a custom hierarchical taxonomy via REST api?
- Get post meta value outside of the loop
- Unable to create a new taxonomy
- Change link of taxonomy when get_the_term_list( is used?
- Remove Custom metabox from particular page template is used
- generate random slug when adding taxonomy
- Custom taxonomy shows full articles
- Post not showing in my custom advanced search
- WordPress tag or archive php file customization
- Best Method to Switch Between Terms (Custom Taxonomy)
- How to add a post with new Taxonomy without assigning to default category?
- Change order custom taxonomy
- Register custom taxonomy from a Advenced custom field option page
- Trying to achieve row posts below category with multiple loops in custom tax
- Using wp_query is it possible to orderby taxonomy?
- List of taxonomy archive index page links
- Search and filter with custom field in taxonomy
- Prevent random entries in hierarchical false taxonomies
- Exporting CSV of users with custom user taxonomies out of WordPress
- is_tax not working for custom taxonomy
- Querying posts globally based on custom taxonomy with its own taxonomymeta table
- How to delete unused terms?
- Child terms with improper parent in the url should redirect to 404