Dynamic Title In WordPress

<title>
<?phpif (is_home())
{
echo bloginfo(‘name’);
}
elseif (is_404())
{
echo ‘404 Not Found’;
}
elseif (is_category())
{
echo ‘Category:’; wp_title(”);
}
elseif (is_search())
{
echo ‘Search Results’;
}
elseif ( is_day() || is_month() || is_year() )
{
echo ‘Archives:’; wp_title(”);
}
else
{
echo wp_title(”);
}
?>
</title>

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*