AudioJungle

Show a list of "Custom post" categories

2952 posts
  • Attended a Community Meetup
  • Australia
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Contributed a Blog Post
  • Elite Author
  • Exclusive Author
+6 more
DDStudios says

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.

556 posts You Reap What You Saw
  • Author had a Free File of the Month
  • Bought between 1 and 9 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 200 and 499 users
  • Sold between 50 000 and 100 000 dollars
Bluz says

+1 for this. I need to display a list of categories under my “Products” post type.

2934 posts
  • Community Superstar
  • Sold between 1 000 and 5 000 dollars
  • Bought between 10 and 49 items
  • Has been a member for 2-3 years
  • United States
  • Exclusive Author
chrisakelley says

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

2507 posts Put a Donk On It
  • Attended a Community Meetup
  • Beta Tester
  • Bought between 10 and 49 items
  • Contributed a Tutorial to a Tuts+ Site
  • Elite Author
  • Exclusive Author
  • Has been a member for 3-4 years
  • Interviewed on the Envato Notes blog
+5 more
ThemeProvince says

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;

99 posts
  • Elite Author
  • Referred between 100 and 199 users
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
PixelBook says

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

2952 posts
  • Attended a Community Meetup
  • Australia
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Contributed a Blog Post
  • Elite Author
  • Exclusive Author
+6 more
DDStudios says


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 ;)

by
by
by
by
by