Add public id to posts, get_latest_post