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.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)