Switch language

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




page_template_dropdown [ WordPress Function ]

page_template_dropdown ( $default = '' )
Parameters:
  • (unknown_type) $default
Defined at:



{@internal Missing Short Description}}

Source


<?php
function page_template_dropdown$default '' ) {
    
$templates get_page_templates();
    
ksort$templates );
    foreach (
array_keys$templates ) as $template )
        : if ( 
$default == $templates[$template] )
            
$selected " selected='selected'";
        else
            
$selected '';
    echo 
"\n\t<option value='".$templates[$template]."' $selected>$template</option>";
    endforeach;
}
?>

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