WordPress.org

Ready to get started?Download WordPress

Forums

Category Subdomains & Themes! HELP NEEDED QUICK (6 posts)

  1. ConnorJack
    Member
    Posted 4 years ago #

    Is it possible?
    I have a blog with two categories: A & B running off a single dashboard on a normal installation of WordPress.
    Firstly, I would like visitors to be able to go to categoryb.mydomain.com to access all of category B's post.
    However, then I want that subdomain to have a separate theme (or just some changes to the existing one).
    So once again, I ask, is it possible? Whether it's plugins or PHP code then please tell me. I know conditional tags may come into it.

    Thanks in Advance
    ~Connor

  2. ConnorJack
    Member
    Posted 4 years ago #

    Any help? I really need to get this sorted by tonight

  3. ConnorJack
    Member
    Posted 4 years ago #

    Anyone?

  4. boundforhome
    Member
    Posted 4 years ago #

    I'm no expert at this stuff, but I don't believe you can have a different theme, but have you considered using the conditional tags for Categories in your PHP template to slightly tweak the theme?

    i.e. one of these two:

    in_category('5')
    is_category('5')

    How's your PHP?

    <?php if in_category('5') { ?>
       <div id="cat5">{stuff}</div>
    <?php } else { ?>
       <div id="cat_6">{stuff}</div>
    <?php } ?>
  5. porush
    Member
    Posted 4 years ago #

    @ConnorJack http://wordpress.org/extend/plugins/wordpress-subdomains/

    Just what u want Cheers :)

  6. nick_nielsen
    Member
    Posted 4 years ago #

    You can make templates for individual categories and also put conditional arguments to make templates behave differently for each category - it's in the codex - http://codex.wordpress.org/Category_Templates

    Hope that helps

Topic Closed

This topic has been closed to new replies.

About this Topic