get page name wp

Solutions on MaxInterview for get page name wp by the best coders in the world

showing results for - "get page name wp"
Jorge
27 Apr 2019
1$slug = basename(get_permalink());
2//or
3$wp_query->queried_object->post_name