Switch language

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




list_meta [ WordPress Function ]

list_meta ( $meta )
Parameters:
  • (unknown_type) $meta
Defined at:



{@internal Missing Short Description}}

Source


<?php
function list_meta$meta ) {
    
// Exit if no meta
    
if ( ! $meta ) {
        echo 
'
<table id="list-table" style="display: none;">
    <thead>
    <tr>
        <th class="left">' 
_x'Name''meta name' ) . '</th>
        <th>' 
__'Value' ) . '</th>
    </tr>
    </thead>
    <tbody id="the-list" class="list:meta">
    <tr><td></td></tr>
    </tbody>
</table>'
//TBODY needed for list-manipulation JS
        
return;
    }
    
$count 0;
?>
<table id="list-table">
    <thead>
    <tr>
        <th class="left"><?php _ex'Name''meta name' ?></th>
        <th><?php _e'Value' ?></th>
    </tr>
    </thead>
    <tbody id='the-list' class='list:meta'>
<?php
    
foreach ( $meta as $entry )
        echo 
_list_meta_row$entry$count );
?>
    </tbody>
</table>
<?php
}
?>

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