PHP
<?php $slug_name = basename(get_permalink()); ?>
or
PHP
<?php $slug_name = $post->post_name; ?>
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
<?php $slug_name = basename(get_permalink()); ?>
or
<?php $slug_name = $post->post_name; ?>
Register as a new user and use Qiita more conveniently
Go to list of users who liked