Obtenha slug de página atual
$slug = get_queried_object()->post_name;
Wide-eyed Wallaby
$slug = get_queried_object()->post_name;