Remove Url Parameter WordPress

The “s” variable parameter is for the search term and is used when there’s a search on a WordPress site. If you have a form that users are filling out, there should be code similar to: <input type=”text” value=”<?php the_search_query(); ?>” name=”s” id=”s” /> Delete that input tag and the “s” will disappear.

Change output URL Search module

Use action = ‘website/search’ to get the query appended… Ideally your form would look like this… <form action=”website/search”> <input type=”text” name=”filter” /> <input type=”submit”> </form> Then you can grab filter to interact with WordPress Query and display result. Hope this helps.

Search by tag, category and author without plugin

I can think of two options: Multiple WP_Queries, each for normal search, taxonomies and meta. And merge the results you get from each. OR A WPDB query, with join between _post, _postmeta, _terms(and all tables related to terms). Although I will prefer 1st method, it’s your choice what you are comfortable with and performance you … Read more

Add pagination to search.php page

Sometimes pagination will break and give unexpected results, redirect you to the wrong page or give you a 404 (page not found) on the “paged” pages. This is usually due to your theme altering (querying) the main loop wrong. Try updating your .htaccess file by updating the permalink.