Switch language

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




the_terms [ WordPress Function ]

the_terms ( $id, $taxonomy, $before = '', $sep = ', ', $after = '' )
Parameters:
  • (int) $id Post ID.
  • (string) $taxonomy Taxonomy name.
  • (string) $before Optional. Before list.
  • (string) $sep Optional. Separate items using this.
  • (string) $after Optional. After list.
Returns:
  • (null|bool) False on WordPress error. Returns null when displaying.
Defined at:



Display the terms in a list.

Source


<?php
function the_terms$id$taxonomy$before ''$sep ', '$after '' ) {
    
$term_list get_the_term_list$id$taxonomy$before$sep$after );

    if ( 
is_wp_error$term_list ) )
        return 
false;

    echo 
apply_filters('the_terms'$term_list$taxonomy$before$sep$after);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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