Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get first cat php wp

<?php
$category = get_the_category(); 
echo $category[0]->cat_name;
 
PREVIOUS NEXT
Tagged: #cat #php #wp
ADD COMMENT
Topic
Name
7+2 =