How do i search authors from search form using author’s name

You should create pre_get_posts filter and trigger in the $query->is_search() to check if post_type is set to author and if it is then unset post_type to posts or what evver you want and set author parametrs to $query object. related links: https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts https://codex.wordpress.org/Class_Reference/WP_Query#Author_Parameters Or you should create another select, listing all users and give it … Read more

Customise Excerpt start and end

The Search Everything plugin supports “Search Highlighting” in the results page which should produce the results you are looking for. We have no way of knowing how customized the search results page is in your specific project though. You may find that you are fighting an up hill battle until you (or someone on your … Read more

meta_query issue with multiple numerics

Untested and semi-pseudo code obviously. The idea is that a meta query is already an array of arrays, each field in your form is another nested array. If a value exists we push it onto the array. <?php $_location = $_GET[‘location’] != ” ? $_GET[‘location’] : ”; $_status = $_GET[‘status’] != ” ? $_GET[‘status’] : … Read more