Many times you need to provide a search input for your site that will search through custom fields, comments, categories and many more. However the default WordPress Search searches only through the post and pages content and title. This post shall show how to define your own custom search query.
WordPress tables shown in Pages and Posts contain some unwanted columns like the comments column. This post shows how to remove unwanted columns and add your own.