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 ..

447 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
+5 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.

447 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
+5 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 :)

1875 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 …

707 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
389 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;
}
by
by
by
by
by
by