Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wp get category by id

<?php
$category_id = 21; //use your own category id
$category = get_category( $category_id );
echo $category->name;
echo $category->cat_ID;
//print_r($category);
//to get all the properties of the $category
?>
Comment

PREVIOUS NEXT
Code Example
Php :: php sqrt 
Php :: foreignid in laravel 
Php :: laravel make directory 
Php :: absolute path php 
Php :: laravel query builder sum 
Php :: laravel change column 
Php :: php random name 
Php :: php array size 
Php :: fetch row in php 
Php :: how to get auth user name in laravel 
Php :: wordpress notice 
Php :: php change string to url friendly 
Php :: how to change laravel port 
Php :: convert float to integer laravel 
Php :: create foreign key phpmyadmin 
Php :: if browser url is having query string after domain name in it check using php 
Php :: symfony 5 server start php bin cosleole 
Php :: php regex file extension 
Php :: Download multiple files as zip in PHP 
Php :: wordpress thumbnail 
Php :: concat function using laravel update query 
Php :: remove whitespace from string php 
Php :: php setinterval 
Php :: woocommerce bulk product delete 
Php :: php microtime to seconds 
Php :: blade condition if else laravel 
Php :: wordpress max post revision 
Php :: wordpress is home page 
Php :: laravel wher in 
Php :: php connect to mysql 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =