Wordpress Titles

Discussion in 'PHP' started by JohnS0N, Oct 1, 2008.

  1. #1
    I am using a static page for my homepage and the conditional " if (is_home())" tag is not working. The problems is because the homepage is now both a page and home, so it seems wordpress disregards home and picks up the settings for page. Can this be fixed?

    Here are my SEO titles for that website:

    <title><?php if (is_home()) { bloginfo('name'); ?><?php } elseif (is_category() || is_page() ||is_single()) { ?> <?php } ?><?php wp_title(''); ?></title>
    Code (markup):
     
    JohnS0N, Oct 1, 2008 IP