Switch language

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




the_meta [ WordPress Function ]

the_meta ( No parameters )
Uses:
Defined at:



Display list of post custom fields.

Source


<?php
function the_meta() {
    if ( 
$keys get_post_custom_keys() ) {
        echo 
"<ul class='post-meta'>\n";
        foreach ( (array) 
$keys as $key ) {
            
$keyt trim($key);
            if ( 
is_protected_meta$keyt'post' ) )
                continue;
            
$values array_map('trim'get_post_custom_values($key));
            
$value implode($values,', ');
            echo 
apply_filters('the_meta_key'"<li><span class='post-meta-key'>$key:</span> $value</li>\n"$key$value);
        }
        echo 
"</ul>\n";
    }
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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