Question : get the category wp
Answered by : andrew-lautenbach
//get category name foolproof
echo (!empty(get_the_category($post)) ? get_the_category($post)[0]->name : '');
Source : | Last Update : Thu, 16 Sep 21
Question : wordpress display post categories
Answered by : vishal-bharat-lambe
<?php the_terms( $post->ID, 'topics', 'Topics: ', ', ', ' ' ); ?>
Source : | Last Update : Fri, 04 Dec 20
Question : wordpress get category description
Answered by : steamboatid
category_description( int $category )
Source : | Last Update : Fri, 24 Jun 22