2952 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+10 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
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been part of the Envato Community for over 5 years
  • Contributed a free file of the month
+4 more
Bluz says

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

3436 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 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

2588 posts Put a Donk On It
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has sold $250,000+ on Envato Market
+10 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
  • Has referred 100+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+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
  • Has been part of the Envato Community for over 5 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+10 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 ;)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by