How would that be done? I’ve been searching but I can’t find anything.
Just want to echo the list of categories for my portfolio posts.
How would that be done? I’ve been searching but I can’t find anything.
Just want to echo the list of categories for my portfolio posts.
+1 for this. I need to display a list of categories under my “Products” post type.
DDStudios said
How would that be done? I’ve been searching but I can’t find anything. Just want to echo the list of categories for my portfolio posts.
http://wordpress.org/support/topic/list-categories-for-custom-post-type
I think its impossible to determine portfolio & normal categories. You should register a taxonomy for your portfolio categories.
$portfolio_cats = get_categories("taxonomy=taxonomy_name");
foreach($portfolio_cats as $portfolio_cat) :
echo $portfolio_cat->category_name;
endforeach;
ThemeProvince said
I think its impossible to determine portfolio & normal categories. You should register a taxonomy for your portfolio categories.$portfolio_cats = get_categories("taxonomy=taxonomy_name"); foreach($portfolio_cats as $portfolio_cat) : echo $portfolio_cat->category_name; endforeach;
+1 for this. But I think is $portfolio_cat->cat_name;
http://codex.wordpress.org/Function_Reference/get_categories
OrganicBeeMedia said
DDStudios said
How would that be done? I’ve been searching but I can’t find anything. Just want to echo the list of categories for my portfolio posts.http://wordpress.org/support/topic/list-categories-for-custom-post-type
Thanks mate 
COPYRIGHT © 2012 ENVATO| TERMS OF USAGE| SUPPORT/HELP| ICONS BY TANGO + WEFUNCTION + FAMFAMFAM
Adobe®, Flash®, Flex®, Fireworks®, Photoshop®, Illustrator®, InDesign® and After Effects® are registered trademarks of Adobe Systems Incorporated.