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 ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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