Skip to content

PHP code snippet – How to get category from post id?

get_the_category($post->ID)
See also  CSS code snippet - How to create space inbetween text ?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.