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!