• Resolved Pete

    (@perthmetro)


    I was hoping someone could help me fix this up please, it gives me this error…
    Parse error: syntax error, unexpected T_ELSE in /home/outdoor/public_html/wp-content/themes/news_10/header.php on line 23

    <?php if (is_category()) ?>
    <?php echo 'Category:'; wp_title(''); ?>
    <?php else ?>
    <?php echo wp_title(''); ?>
Viewing 1 replies (of 1 total)
  • Thread Starter Pete

    (@perthmetro)

    Found this solution…

    <?php if (is_category()) { ?>
    <?php echo wp_title(''); ?>
    <?php } else { ?>
    <?php echo wp_title(''); ?>
    <?php } ?>
Viewing 1 replies (of 1 total)

The topic ‘php syntax error help’ is closed to new replies.