• 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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    (@kcarissimi)

    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

    (@kcarissimi)

    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.