Two questions from me. Is there a call where I can display the page slug on the page? Secondly, how would I write a conditional statement to display the the category in the header on single posts, but leave it blank on everything else?
Two questions from me. Is there a call where I can display the page slug on the page? Secondly, how would I write a conditional statement to display the the category in the header on single posts, but leave it blank on everything else?
hi
1) slug: echo $post->post_name;
2) display on single posts: if (is_single()) { whatever }
Thanks. was needing the slug.
This topic has been closed to new replies.