1. Home
  2. Wordpress
  3. Is page
#wordpress#php#template

Check if the given page is a WordPress page type.

if ( is_page() ) {
    print "This is a page";
}
copy
Full Wordpress cheatsheet
Sitemap Git repository