Added getPostID function