📜  获取页面名称 wp - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:42.803000             🧑  作者: Mango

代码示例1
$slug = basename(get_permalink());
//or
$wp_query->queried_object->post_name