Forums

[resolved] php syntax error help (2 posts)

  1. Pete
    Member
    Posted 4 months ago #

    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(''); ?>
  2. Pete
    Member
    Posted 4 months ago #

    Found this solution...

    <?php if (is_category()) { ?>
    <?php echo wp_title(''); ?>
    <?php } else { ?>
    <?php echo wp_title(''); ?>
    <?php } ?>

Reply

You must log in to post.

About this Topic