use post id when outside the loop
Merge pull request #34 from krivinarius/master

use post id when outside the loop