- Attended a Community Meetup
- Australia
- Author had a File in an Envato Bundle
- Author had a Free File of the Month
- Author was Featured
- Bought between 100 and 499 items
- Contributed a Blog Post
- Exclusive Author
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.
- Author had a Free File of the Month
- Bought between 1 and 9 items
- Exclusive Author
- Has been a member for 3-4 years
- Referred between 200 and 499 users
- Sold between 50 000 and 100 000 dollars
+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
- Attended a Community Meetup
- Author was Featured
- Beta Tester
- Bought between 10 and 49 items
- Contributed a Tutorial to a Tuts+ Site
- Exclusive Author
- Has been a member for 3-4 years
- Interviewed on the Envato Notes blog
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
- Attended a Community Meetup
- Australia
- Author had a File in an Envato Bundle
- Author had a Free File of the Month
- Author was Featured
- Bought between 100 and 499 items
- Contributed a Blog Post
- Exclusive Author
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 
