Title: Labels Functioning as Tags
Last modified: August 17, 2019

---

# Labels Functioning as Tags

 *  [kcarissimi](https://wordpress.org/support/users/kcarissimi/)
 * (@kcarissimi)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/labels-functioning-as-tags/)
 * Hi all,
 * I am hoping someone can guide me in the right direction with this. As you can
   see on the page above, our theme comes with built-in labels, but I would like
   these to link to their subsequent tracks. I am attempting to build a php similar
   to pulling tags for posts but am struggling. Any help would be greatly appreciated,
   as I’m really more of a front-end person (CSS, design) with limited php skills.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flabels-functioning-as-tags%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Liew Cheon-Fong](https://wordpress.org/support/users/lcf/)
 * (@lcf)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/labels-functioning-as-tags/#post-11840226)
 * do you mean that you want to link the label (tag) to a certain page? An easier
   way I would try is using a redirection plugin to redirect each label to the page
   you want.
 *  Thread Starter [kcarissimi](https://wordpress.org/support/users/kcarissimi/)
 * (@kcarissimi)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/labels-functioning-as-tags/#post-11840230)
 * Thank you for responding!
 * I’d like to redirect the labels to the slugs for each track: for instance, Development
   to all the sessions in that track, like a blog tag would. Would a redirect app
   do that too?
 *  Thread Starter [kcarissimi](https://wordpress.org/support/users/kcarissimi/)
 * (@kcarissimi)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/labels-functioning-as-tags/#post-11841535)
 * This is the code right here. All I want to do is add a piece that lets a user
   click on the label and go to all the rest of the sessions tagged in that track.
 *  <?php foreach ($tracks as $track) { ?>
    <span data-track=”<?php echo $track-
   >term_id; ?>” class=”label single-session-link btn btn-primaryd<?php if (empty(
   $track->color)) echo ” bg-gold”; ?>” <?php if (!empty($track->color)) echo “style
   =’background-color: $track->color;'”; ?>><?php echo $track->name; ?></span> <?
   php } ?>

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Labels Functioning as Tags’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [development](https://wordpress.org/support/topic-tag/development/)
 * [labels](https://wordpress.org/support/topic-tag/labels/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [kcarissimi](https://wordpress.org/support/users/kcarissimi/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/labels-functioning-as-tags/#post-11841535)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
