I have this loop that gets chosen categories for a custom post type of portfolio:
$wp_query = new WP_Query(array('category__in' => $portfolio_cat, 'post_type' => 'portfolio', 'showposts'=>$number_of_posts) );
It uses standard wordpress categories, but only shows portfolio type posts in those categories. The problem is, I want to list the category the portfolio post is in but when the category is clicked it leads to a 404 not found.
I am using this to display the category (successfully) under the portfolio post type:
<?php the_category('') ?>
Is there any way to have a custom post type use standard categories and not a custom taxonomy and be able to click the category to go to a page that lists all posts in the category?