一句话:

$post_data = get_post($post->ID, ARRAY_A);
$slug = $post_data['post_name'];
echo $slug;

 

相关文章: