Show post_category
-
Hello, I need to show the category ID in my posts. Here I found how to do it: https://codex.www.ads-software.com/Function_Reference/get_post#Usage
I was trying to do soiomething like this but it shows “0”:
$category = $post->post_category ;
As I am using WordPress 2.2 I must do it using the $post2cat table.
Here I found something about it: https://codex.www.ads-software.com/Database_Description20
But I don’t know how to do it, how can I do it?
Thanks in advanced!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Show post_category’ is closed to new replies.