Description and Title question
-
i saw the conditional statement that says if single post, put the title of the post, if not, put site description. My question is, where do i put it?? I tried index.php and its not working…
<meta name=”description” content=”<?php if ( is_single() ) {
single_post_title(”, true);
} else {
bloginfo(‘name’); echo ” – “; bloginfo(‘description’);
}
?>” />
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Description and Title question’ is closed to new replies.