Weird Title Glitch
-
It noticed this when creating conditional page titles, this is the current code that ultimately worked, but at first when I had the elseif for archives above the elseif for categories it would title all my category pages as archives for some reason. Strange.
<title> <?php if ( is_single() ) { bloginfo('name'); echo ' - '; the_title();} elseif ( is_category() ) { bloginfo('name'); echo ' - Categories';} elseif ( is_page() ) { bloginfo('name'); echo ' - '; the_title();} elseif ( is_archive() ) { bloginfo('name'); echo ' - Archives';} else { bloginfo('name');} ?> </title>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Weird Title Glitch’ is closed to new replies.