Support » Themes and Templates » Changing titles in categories

  • I added the following code in the archives template in attempt to control page titles of various categories, but the final statement is not registering for some reason. There is no error, but the page title is blank:

    if(is_category(’19’)) {echo “<title>” . “test” . “</title>”; }
    elseif(is_category(’14’)) {echo “<title>” . “success” . “</title>”; }
    elseif(is_category(‘8’)) {echo “<title>” . “bingo” . “</title>”; }
    else echo “<title>” . single_cat_title() . “</title>”;

    Any help would be greatly appreciated.

  • The topic ‘Changing titles in categories’ is closed to new replies.