Search
 
SCRIPT & CODE EXAMPLE
 

PHP

get the category wp

//get category name foolproof 
echo (!empty(get_the_category($post)) ? get_the_category($post)[0]->name : '');

Comment

wordpress get category description

category_description( int $category )
Comment

PREVIOUS NEXT
Code Example
Php :: php get first character of each word 
Php :: check if array is empty php 
Php :: php function uppercase first letter 
Php :: laravel collective form include image 
Php :: php print datetime 
Php :: include in php 
Php :: php current time 
Php :: Eloquent where date methods 
Php :: get value from url in laravel blade 
Php :: default language laravel 
Php :: add custom post type wordpress 
Php :: php array viewer 
Php :: comment php 
Php :: how to pass token with post request laravel 
Php :: how to convert youtube url to embed code in php 
Php :: wordpress get product category name by termid 
Php :: php named parameters 
Php :: php PDO howto columns from table 
Php :: Installing Maatwebsite excel import export package 
Php :: how get the photo size upload in laravel 
Php :: how to call php function from ajax 
Php :: Root composer.json requires php ^7.1.3 but your php version (8.0.3) does not satisfy that requirement. 
Php :: apache using wrong php version 
Php :: laravel factory relations data 
Php :: laravel blade global variable 
Php :: php array sort by key 
Php :: url segment in laravel 
Php :: php html to pdf 
Php :: how to check path laravel 
Php :: laravel passport client 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =