Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wordpress single post get category name

$category = get_the_category();
$firstCategory = $category[0]->cat_name;
Comment

PREVIOUS NEXT
Code Example
Php :: post json php 
Php :: laravel collection count 
Php :: php function to convert string to camelcase 
Php :: fore install debian 10 php 7.3 
Php :: filemtime($current_file_name); 
Php :: add column migration laravel 
Php :: How to copy all files from one folder to another in PHP? 
Php :: php check array is not associative 
Php :: laravel if file is image 
Php :: default index page for laravel in cpanel 
Php :: how count the rout in route.php laravel 
Php :: set php path in ubuntu 
Php :: carbon date minus days 
Php :: Notice: Undefined property: enable_for_virtual 
Php :: datediff in hour query builder laravel 
Php :: laravel queue work on shared hosting 
Php :: php artisan down 
Php :: mac os change the php verison 
Php :: twig trim space 
Php :: php curl post 
Php :: if text contains word then in php 
Php :: laravel auth namespace 
Php :: wordpress remove user roles 
Php :: php set alternatives 
Php :: php echo alot of html 
Php :: lumen generate app key 
Php :: yii2 pjax 
Php :: strpos in php 
Php :: absolute path php 
Php :: message mkdir() invalid path filename drivers/session_files_driver.php 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =