replace slug with the post name in the API