$wp_post_slug?
-
im using themes and the question is
Can i get in “header.php” my page slug variable?
i thought this would work:
if(is_page()) {$class="class=\"".wp_title()."\"";}
else $class="class=\"home\"";
But wp_title is not variable and it echoes pagetitle and not pageSLUG…. ??
Is there some variable like$wp_post_slug
?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘$wp_post_slug?’ is closed to new replies.