is_front_page

Definition:
function is_front_page() {}

Is the query for the front page of the site?
This is for what is displayed at your site’s main URL.

Return values

returns:True, if front of site.

Source code

	function is_front_page() {

		// most likely case

		if ( 'posts' == get_option( 'show_on_front') && $this->is_home() )

			return true;

		elseif ( 'page' == get_option( 'show_on_front') && get_option( 'page_on_front' ) && $this->is_page( get_option( 'page_on_front' ) ) )

			return true;

		else

			return false;

	}

2123

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: