PHP code snippet – How to get category from post id? Subash Chandran 7th November 2021 Leave a Comment get_the_category($post->ID) Curly hair, very fair, please share 🙂Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Telegram (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email this to a friend (Opens in new window) Related See also Java code snippet - How to control clip volume ? Snippets PHP code snippet - How to get category from post id? Change font size A Decrease font size. A Reset font size. A Increase font size.