Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

To show inline category

<?php
$categories = get_the_category();
$cat = '';
foreach ($categories as $category) {
    $cat .= $category->cat_name . ', ';
}
$cat = substr($cat, 0, -2);
echo $cat;
?>
 
PREVIOUS NEXT
Tagged: #To #show #inline #category
ADD COMMENT
Topic
Name
4+1 =