Hi @virtualexpo
You’ve not posted enough code to understand what’s going on here..
There’s no reference to $postId other than where you use it in your shortcode.
You could post the entirety of your code on a service like http://pastie.org/ so it can be better viewed 🙂