Forum Replies Created
-
AuthorPosts
-
fenoco
ParticipantThank you very much Josh, that did the job 🙂
fenoco
ParticipantActually this is the code:
$terms = get_the_terms( $post->ID, ‘tribe_events_cat’ );
$term = array_pop($terms);Then you can echo $term->slug; wherever you need.
fenoco
ParticipantGreat thread, thanks for the info!
I managed to remove the link from the organizer too, but was unable to do the same for the category link. Any idea on how to do this?
I’ve tried using:
remove_filter( ‘tribe_meta_event_category_name’, array(‘Tribe_Register_Meta’, ‘event_category’), 10, 2);But had no luck.
Thanks for the help!
fenoco
Participanthmm… The code came up all wrong. This is it:
—
ID, ‘tribe_events_cat’ );
$term = array_pop($terms);
/* foreach ($terms as $elterm) { echo $elterm->slug.’ ‘ ; } */
?>
<li class="slug; ?> cf”>
—fenoco
ParticipantHi Reid! Thanks for your comment, and your answer. We were aware of the override system, and we are using it. It’s great that you thought of that.
We actually figured something out after creating the discussion so I’ll post it here for reference. We ended up doing this:
ID, 'tribe_events_cat' );
$term = array_pop($terms);
/* foreach ($terms as $elterm) { echo $elterm->slug.' ' ; } */
?>
<li class="slug; ?> cf"> Your event goes here.
Works wonders. Thanks again! -
AuthorPosts
