Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

Get the Post Categories From Outside the Loop


<?php
$post = get_post();
if ( $post ) {
    $categories = get_the_category( $post->ID );
    var_dump( $categories );
}
Comment

PREVIOUS NEXT
Code Example
Typescript :: how to remove dots in unordered list html 
Typescript :: typescript default value null or undefined 
Typescript :: yup validation typescript 
Typescript :: typeorm transactions example 
Typescript :: stats python 
Typescript :: generic function typescript 
Typescript :: how to use indexOf in typesript 
Typescript :: Update multiple documents with different field value by id set. Mongoose 
Typescript :: typescript dynamic type 
Typescript :: what are the three ways for a developer to execute tests in an org 
Typescript :: how to make the inputs become a sum python 
Typescript :: generate random numbers in python within a range 
Typescript :: windows 10 iso 
Cpp :: c++ starter 
Cpp :: loop over multidimensional array c++ 
Cpp :: underline in latex 
Cpp :: celsius to kelvin formula 
Cpp :: how to check string contains char in c++ 
Cpp :: Count set bits in an integer c++ 
Cpp :: remove all element of vector c++ 
Cpp :: qt remove resize handle 
Cpp :: ue4 ftext c++ 
Cpp :: strcat without using built in function 
Cpp :: gl draw line rectangle 
Cpp :: for loop reverse C++ 
Cpp :: temporary mobile number 
Cpp :: scale window sdl2 
Cpp :: casting pointer (int to char*) in c++ 
Cpp :: qt double en qstring 
Cpp :: rank() in c++ 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =