I’m trying to do exactly the same thing as mbalara. I haven’t found anything helpful in the forums though. The closest template tag to what I need is <?php permalink_anchor('title'); ?>
. That tag doesn’t echo the post slug – only an anchor (obviously). But since the slug is returned in the html code as <
a id=”post-slug”><
/a>
I think this widely spread problem must have a solution…
PS: <?php echo $post->post_name; ?>
doesn’t seem to work.
Anyone? Please?