• Hey.
    If I am making a big site which has multiple categories such as Gaming, Technology, and Graphics, what should I do? What I want is people can click on Technology and get taken to the Technology version of the site, BUT I want the technology version of the site to have its own Banner.

    Should I just make categories in WordPress, or install a new wordpress for each category? I want all my users who register to be able to access all categories with one account. They shouldn’t need to make 3 accounts to visit 3 parts of the site.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Conditional display of something depending on the category archive page can be achieved by use of is_category in a php if/elseif/else in the relevant theme file (header.php here?):

    http://codex.wordpress.org/Conditional_Tags#A_Category_Page

    <?php if (is_category('a')) { ?>
    <!-- code here -->
    
    <?php } elseif (is_category(array('b','c'))) { ?>
    <!-- code here -->
    
    <?php } elseif (is_category('d')) { ?>
    <!-- code here -->
    
    <?php } else { ?>
    <!-- code here -->
    
    <?php } ?>

    Also see: http://codex.wordpress.org/Category_Templates

    And off course you can make more than one category template, like category10.php category11.php In Admin you will find the category ID of a category.
    If category10 is klicked from the menu, and the template category10.php exists, that is used and not the basic category.php etc etc

    Thread Starter Userkan232

    (@userkan232)

    I’m confused :p Im a beginner, so yeah forgot to mention that. So basically your saying, when I make a new category, I can make it so it has its own template/theme with its own header WITHOUT creating another WordPress installation?

    Yes, set up your site, make the categories and make a test post in each category; find the ID of the category. Then just copy category.php or, if that does not exist in your theme, copy index.php into a new file called categoryID.php where ID is the ID number from the category and then edit this one.

    Read more here: http://www.codescheme.net/2007/04/29/simple-design-a-first-wordpress-theme-1/

    You dont have to create multiple wordpress databases just for having different theme for different categories.
    For beginners it may be difficult as it involves some coding.
    You need to have different CSS stylesheet files and have to make no. of category template files and address respective css files.

    I found a nice bit of coding for making alternate headings for each category.
    While there are many plug-ins for alternate header images and text, this code allowed me to make a different flash header for each category and each static page as well.

    http://www.ruhanirabin.com/different-headers-in-different-categories-and-pages-wordpress/

    No new css or anything. If you are a web designer, you’ll love this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘What should I do?’ is closed to new replies.