I need the post slug
-
Is the slug queried in the post function so that I can jet it into a link URL as a $ variable?
What I need to do is make a post link to a page that happens to have it’s slug. I’m thinking this is the easiest way to link a dynamic post to pages dynamically.
So I am picturing something like
<?php the_slug(); ?>
I also was trying to find that cool snippet of PHP that will display all the variables in a session. I wanted to use it to see what WP has floating out there. Anyone know it?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘I need the post slug’ is closed to new replies.