• Resolved hofo

    (@hofo)


    Hey,

    How do I get to the post ID as a PHP variable? I’ve tried in and outside the loop, $thePostID = $post->id; but this doesn’t seem to be working. I’m trying to get the post id so I can then call get_post_meta to retrieve the value of a custom field called “filename”.

    Thanks for any help…

    — hofo

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘post id as php variable?’ is closed to new replies.