How can I get the post slug in php code?
How can I get the post slug in php code?
<?php permalink_anchor(title); ?>
read the codex for more info, you have to use that within the loop.
I write
<?php permalink_anchor(title); ?>
just after the beginning of the loop
<?php if (have_posts()): while(have_posts()) : the_post(); ?>
but have no result.
If I use any another function (ex. the_ID) the result will be. Is something wrong?
This topic has been closed to new replies.