How can I get the slug of a page or post?
Inside of your loop you can do:
global $post;
echo $post->post_name;
How can I get the slug of a page or post?
Inside of your loop you can do:
global $post;
echo $post->post_name;