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

Hey guys, thanks for your suggestion :)

I decided to go with jquery so I did this :

$(’#slider_nav .block span a’).removeAttr(‘href’);

Will try your solutions just to practice myself and if it’s better, im gonna use it :)

98 posts
  • Has referred 10+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+4 more
bringthepixel 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 ..

strip_tags() :)

1029 posts
  • Has referred 500+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
ThemeBlvd says

@DD

For future reference, you could use the get_terms() function:

http://codex.wordpress.org/Function_Reference/get_terms

<?php $your_array_of_terms = get_terms( $taxonomies, $args ) ?>

You’d feed in your custom taxonomy for your custom post type, and it’s going to return an array of that taxonomy’s terms. You can then loop through and pickout the “name” element for each term of the array.

595 posts Themes and Graphics
  • Has been part of the Envato Community for over 5 years
  • Has referred 50+ members
  • Has sold $250,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+9 more
Bebel says
Hey guys, thanks for your suggestion :)

I decided to go with jquery so I did this :

$(’#slider_nav .block span a’).removeAttr(‘href’);

Will try your solutions just to practice myself and if it’s better, im gonna use it :)

Don’t forget to style these href anyway. Some people disable javascript – they will still get the links.

As Themeblvd already wrote, the wordpress codex should be your number one ressource! Its amazing, what you can find on these pages :)

And don’t worry about getting a good programmer – it just needs time.

120 posts
  • Has been part of the Envato Community for over 2 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+2 more
CodBits 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 ..
strip_tags() :)
+1000 It is the best way. The code should be sth like this. <?php $post_categories = get_the_term_list( $post->ID, 'slider_cats' , ' ', ' , ', ' '); echo strip_tags($post_categories); ?>
1542 posts How's the surf doing?
  • Nominated Community Superstar of the month
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Had an item featured on Envato Market
+7 more
tommusrhodus says

If he’s been mulling this over for the past 2 years then I think you’ve finally made his decision :D

120 posts
  • Has been part of the Envato Community for over 2 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+2 more
CodBits says

If he’s been mulling this over for the past 2 years then I think you’ve finally made his decision :D

I faced this problems less than 6 hours, then I found this post and tried different method. It was the best.

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