1. Home
  2. Wordpress
  3. Is search

Check if the given page is a search results page.

#wordpress#php#template
if ( is_search() ) {
    echo "Search";
}
copy
Full Wordpress cheatsheet
NordVPN NordVPN