I've searched for an answer to my question for about 6 hours now but can't find a solution that works. As a last resort I'm posting here so I apologize if this has been answered.
I'm trying to pull the post ID within the footer. Sounds easy enough, right? In the past (prior to wp 3), I've used this code:
global $wp_query;
$post_id = $wp_query->post->ID;
Since using WordPress 3, this code no longer returns anything. Has anyone had a similar experience or possible alternate solution? I appreciate the help.