I have a WordPress blog hosted on a shared web server: http://martinnormark.com
I would like to add a whole new “area” to this site, called Consulting. When navigating to http://martinnormark.com/consulting – another template with different navigation should be used, and the frontpage should be blog posts for that specific area.
This also means, that the blog posts I write for the Consulting area should not be displayed on the front page of the root domain.
I use the Genesis framework, but I think that might be my problem. It doesn’t seem to support this setup.
Any suggestions for frameworks, themes, or plugins?
Code
function exclude_category( $query ) {
if ( !$query->is_category('hardware')) {
$query->set( 'cat', '-1' );
}
}
add_action( 'pre_get_posts', 'exclude_category' );
The framework is not the problem. You just need to exclude your Consulting category from the loop each time you have it. Then use a custom template for the marketing page. Another option would be to set up a multi-site install and then use Consulting as its own blog.
EDIT:
To exclude the category try adding this to your themes function.php
Edit 2: fixing the problem chip mentioned below.