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

Does it make sense?

When I output category with this : <?php echo get_the_term_list( $post?>ID, ‘slider_cats’, ’’, ’, ’, ’’); ?>

It give me all the category of that custom post type but it’s a link, I dont want link .. just text ..

451 posts Don't be a HATER!
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+6 more
webinpixels says
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

Humm ..

Maybe there’s something im doing wrong…

What do I change “portfolio-category” with in :

$the_term = get_term_by(‘id’, $my_term->term_id, ‘portfolio-category’);

my custom post is “slider_posts”

218 posts
  • Has referred 100+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Located in Canada
+4 more
simonbouchard says

Tu poses trop de questions!

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
Tu poses trop de questions!

Toi tu repond pas assez :)

Aide moi donc a place de niaiser :P

3007 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+7 more
duotive says
Tu poses trop de questions!

Toi tu repond pas assez :)

Aide moi donc a place de niaiser :P

Hell. You can remove the href with jquery.

451 posts Don't be a HATER!
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+6 more
webinpixels says
Tu poses trop de questions!

LOL :D

hi DD, change the “portfolio-category” with your custom taxonomy for your custom post “slider_posts”,

“slider_cats”? am i right?

good luck :)

1882 posts YOU TOUCH IT YOU BUY IT
  • Has referred 200+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+6 more
FRESHFACE says
Tu poses trop de questions!

Toi tu repond pas assez :)

Aide moi donc a place de niaiser :P
Hell. You can remove the href with jquery.

Please don’t do such things with JQuery unless it’s a necessary must-have with no other solutions, this can create such a mess.

Another maybe a little less messy solution is to use cursor:default; in css to fool the user that there is no link at all …

709 posts
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+2 more
ChillThemes says
399 posts
  • Has referred 100+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+5 more
EugeneO says

To return the categories of a single post as plain text I use this:


$post_categories = get_the_terms($post->ID, 'Portfolio Categories');

foreach ($post_categories as $category) {
       echo $category->name);
}

To output all terms of a particular category as plain text I use this:


$categories = get_terms( 'Portfolio Categories' );

foreach ($categories as $cat ) {
    echo $cat->name;
}

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