Insert the slug in a template?
-
Hi helpful WP gods. I’ve got a problem.
I need to use the slug in a template, but so far I can’t find any template tag which will return the slug. Is there one? A plugin? A trick? Secret-handshake?
More specifically, I’m making an image for each post. This image will have the slug as it’s name, e.g. “about-the-birds-on-the-roof.gif” If I could suck the slug into the template, I’d be able to reference these images automatically, and not have to fool with the cumbersome upload interface and HTML copying in WP.
Any ideas?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Insert the slug in a template?’ is closed to new replies.