ConnorJack
Member
Posted 2 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
ConnorJack
Member
Posted 2 years ago #
Any help? I really need to get this sorted by tonight
ConnorJack
Member
Posted 2 years ago #
boundforhome
Member
Posted 2 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 } ?>
nick_nielsen
Member
Posted 2 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