Obtener el nombre de la página WP
$slug = basename(get_permalink());
//or
$wp_query->queried_object->post_name
Andrew Lautenbach
$slug = basename(get_permalink());
//or
$wp_query->queried_object->post_name