Switch language

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




the_category [ WordPress Function ]

the_category ( $separator = '', $parents = '', $post_id = false )
Parameters:
  • (string) $separator Optional, default is empty string. Separator for between the categories.
  • (string) $parents Optional. How to display the parents.
  • (int) $post_id Optional. Post ID to retrieve categories.
Defined at:



Display the category list for the post.

Source


<?php
function the_category$separator ''$parents=''$post_id false ) {
    echo 
get_the_category_list$separator$parents$post_id );
}
?>

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