[resolved] One Category Template For All Categories Problem (2 posts)

  1. KatGirl
    Posted 9 years ago #

    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

  2. KatGirl
    Posted 9 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic