is_page

is_page ( $page = '' )

Parameters:
  • (mixed) $page Page ID, title, slug, or array of such.
Uses:
  • $wp_query
See:
Returns:
  • (bool)
Defined at:

Description

Is the query for an existing single page?

If the $page parameter is specified, this function will additionally check if the query is for one of the pages specified.

Related Functions

is_paged, is_tag, is_date, link_pages, wp_list_pages

Top Google Results

User discussions

wpseek mobile