2952 posts
  • Attended a Community Meetup
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Contributed a Blog Post
  • Elite Author
  • Exclusive Author
+5 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 :)

95 posts
  • Sold between 250 000 and 1 000 000 dollars
  • Elite Author
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Europe
  • Referred between 1 and 9 users
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() :)

1028 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Author had a File in an Envato Bundle
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 500 and 999 users
+1 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.

538 posts Themes and Graphics
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 4-5 years
+4 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
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 1-2 years
  • Most Wanted Bounty Winner
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
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); ?>
950 posts How's the surf doing?
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • United Kingdom
  • Referred between 200 and 499 users
  • Exclusive Author
  • Has been a member for 2-3 years
  • Microlancer Beta Tester
+1 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
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 1-2 years
  • Most Wanted Bounty Winner
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
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.

by
by
by
by
by
by