2952 posts
  • 6 Years of Membership
  • Affiliate Level 5
  • Author Level 8
  • Bundle Boss
+12 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.

562 posts You Reap What You Saw
  • Weekly Top Seller
  • Elite Author
  • Author Level 7
  • 5 Years of Membership
+4 more
Bluz
says

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

3439 posts
  • Author Level 4
  • Collector Level 2
  • Community Superstar
  • United States
+2 more
organicbee
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

2627 posts Put a Donk On It
  • Weekly Top Seller
  • Elite Author
  • Exclusive Author
  • Featured Author
+11 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;

101 posts
  • Weekly Top Seller
  • Elite Author
  • 4 Years of Membership
  • Affiliate Level 4
+3 more
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
  • 6 Years of Membership
  • Affiliate Level 5
  • Author Level 8
  • Bundle Boss
+12 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
by