Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to get category from post id

get_the_category($post->ID)
Comment

get current post category id wordpress

global $wp_query;
$postcat = get_the_category( $wp_query->post->ID );
Comment

PREVIOUS NEXT
Code Example
Php :: laravel migration data types 
Php :: php sum array key 
Php :: laravel blade uppercase 
Php :: php iterate folder 
Php :: php memory_limit unlimited 
Php :: laravel redirect external url 
Php :: mac use php@7.4 
Php :: laravel get file name 
Php :: laravel scout import command 
Php :: Sorry, This File Type Is Not Permitted for Security Reasons 
Php :: max_input_time in wordpress 
Php :: php split string at first space 
Php :: check image is available on server php 
Php :: category name wp query 
Php :: wordpress get archive title 
Php :: get current term id 
Php :: laravel response redirect 
Php :: string to datetime php 
Php :: how to run specific seeder in laravel 
Php :: remove last letter php 
Php :: group by codeigniter 3 
Php :: How to install php-fpm 
Php :: Laravel loop with counter 
Php :: redirect in codeigniter 
Php :: php image to base64 
Php :: attach multiple files in laravel mailable 
Php :: form validation nullable laravel 
Php :: livewire pagination bootstrap 
Php :: carbon parse subday 
Php :: get current month record in laravel 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =