Relevanssi show only 1 result

Try selecting “always” for fuzzy matches in the preferences. In the default setting, if search finds only 1 result, fuzzy matching won’t get activated.

Make search result returned only from tags! [duplicate]

You can start with the Search Everything plugin and go from there. It won’t exclude all post title and content, but it will enable searching in tags. Perhaps you can see how they accomplish it and modify from there. I imagine it will entail some direct SQL manipulation via the query filters posts_where, posts_join, posts_request, … Read more

Selectbox and Searchform and Custom Search Page

Welcome to WPSE! First of all – you cannot have two (or more) elements with the same ID. Second – your select elements lack name attribute and browser doesn’t actually submit anything. Third – you cannot just expect to throw a bunch of selects into the form and expect everything to magically work. In order … Read more

How to display articles based on composed tag

Thanks to a similar topic I can do it with : $tag = get_queried_object(); $tag_slug = $tag->slug; Or with this snippet : $current_tag = single_term_title(“”, false); tag_slug = str_replace(‘ ‘, ‘-‘, $current_tag);

How we filter the search base on post-meta tags

Thats because you got the meta_query wrong. Check documentation in Codex Your query should be: $args = array( ‘posts_per_page’ => 30, ‘paged’ => $paged, ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘meta_query’ => array( array( ‘key’ => ‘post_state’, ‘value’ => $stateName, ‘compare’ => ‘=’ // not necesary by default is “=” ) ) ); Basically you … Read more

Google Search and Own Website Search?

Why not create a form that submits direct to Google? This would be the simplest solution (assuming you want to search every website in the world): <form action=”http://www.google.com/search” method=”get”> <input type=”text” name=”q” placeholder=”Search Google”/> <input type=”submit” /></form> I believe that would do the job you want it to. The result would look something like: https://www.google.com/search?q=this%20that