index_page()

Description

This tag will return the slug of the index page (set in Settings > Pages).

Usage

<?php 
    echo index_page(); 
?>

Examples

<?php 
    $index_page= index_page(); 
    if ( $index_page == "home" ): 
        // Do something cool for the homepage 
    endif; 
?>