Added method to get post ID.