Changing titles in categories (1 post)

  1. dnouche
    Posted 8 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic