Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_home_template [ WordPress Function ]

get_home_template ( No parameters )
Uses:
Returns:
  • (string)
Defined at:



Retrieve path of home template in current or parent template.

This is the template used for the page containing the blog posts

Attempts to locate 'home.php' first before falling back to 'index.php'.

Source


<?php
function get_home_template() {
    
$templates = array( 'home.php''index.php' );

    return 
get_query_template'home'$templates );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics