Support » Fixing WordPress » One Category Template For All Categories Problem

  • Resolved KatGirl


    Hi Guys/Girls

    I’m pulling this error:

    Parse error: syntax error, unexpected ‘<‘ in /home/xxx/public_html/wp-content/themes/romance/categoryone.php on line 4

    I want to use one Category template for multiple Categories. This is what I have inside my Category Template:

    if ( is_category('82') ) {
    include(TEMPLATEPATH . '/reviews-template.php');
    } elseif ( is_category('83') ) {
    include(TEMPLATEPATH . '/reviews-template.php');
    } else {
    include(TEMPLATEPATH . '/categoryone.php');

    Category 82 & 83 display nicely, but all others draw that error.

    Can someone please advise what I need to do to remove the ‘<‘ and get this to work?

    ta muchly

Viewing 1 replies (of 1 total)
  • Okay – I got this to work. I had miscelaneous code in my categoryone.php template which shouldn’t have been there.

    If I encounter any other problems I’ll drop back.

Viewing 1 replies (of 1 total)
  • The topic ‘One Category Template For All Categories Problem’ is closed to new replies.