Hi Alchymyth,
I'm pretty new to wordpress, so I might have to use archive.php instead of category_portfolio.php, but i'll see what you think.
I'm building a Portfolio website with just
Home/Portfolio/Blog/Contact
Home = index.php
Portfolio = category_portfolio.php
Blog = category_blog.php
Contact = (I havn't got this far yet, might use "Pages" and a plugin)
/blog/ & /portfolio/sub-categories - will need different looking archives.
Portfolio has sub categories like "Web Design/Illustartion/Print etc" and if a user goes to /category/portolio it would list all posts posted within those child categories...
But currently it shows posts from both "Portfolio" and "Blog" I don't know how to differentiate, what do you suggest?
I can currently list the "child Categories" only using:
<?php
$args=array( 'orderby' => 'name',
'order' => 'ASC'
);
$categories= get_categories('child_of='.get_query_var('cat'));
foreach($categories as $category) {
echo '<li class="segment-' . $category->cat_ID.'"><a href="#" class="' . $category->cat_ID.'">' . $category->name.'</a></li>';
}
?>
But... I don't know how to pull the posts from these child categories only.