Fixed Issue #1

The issue was due to the typo where `$pos->ID` was written instead of `$post->ID`