1. Home
  2. Wordpress
  3. Is page

Check if the given page is a WordPress page type.

#wordpress#php#template
if ( is_page() ) {
    print "This is a page";
}
copy
Full Wordpress cheatsheet