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

461 posts Don't be a HATER!
  • Weekly Top Seller
  • Elite Author
  • Author Level 8
  • Featured Author
+6 more
CodeElite
says
2952 posts
  • 6 Years of Membership
  • Affiliate Level 5
  • Author Level 8
  • Bundle Boss
+12 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”

229 posts
  • Copyright Ninja
  • Top Monthly Author
  • Trendsetter
  • Weekly Top Seller
+8 more
simonbouchard
says

Tu poses trop de questions!

2952 posts
  • 6 Years of Membership
  • Affiliate Level 5
  • Author Level 8
  • Bundle Boss
+12 more
DDStudios
says
Tu poses trop de questions!

Toi tu repond pas assez :)

Aide moi donc a place de niaiser :P

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

461 posts Don't be a HATER!
  • Weekly Top Seller
  • Elite Author
  • Author Level 8
  • Featured Author
+6 more
CodeElite
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 :)

1908 posts YOU TOUCH IT YOU BUY IT
  • Top Monthly Author
  • Community Superstar
  • Author Level 11
  • Winner
+10 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
  • Affiliate Level 2
  • Author Level 5
  • Beta Tester
  • Collector Level 2
+2 more
ChillThemes
says
407 posts
  • Top Monthly Author
  • Weekly Top Seller
  • Elite Author
  • Author Level 9
+7 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