changed the returned object in get_post_by_id