Hello, I need to show the category ID in my posts. Here I found how to do it: http://codex.wordpress.org/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: http://codex.wordpress.org/Database_Description20
But I don't know how to do it, how can I do it?
Thanks in advanced!