Conditional to determine if search.php page is the current template
WordPress conditional functions will not tell you which template file is used. They tell you what the current request is for. Which file is loaded for that type of request is determined by the template hierarchy. So, is_search() will tell you if search.php is being used if the current request is a search, and the … Read more