Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add custom taxonomy image on posts display in activity feed

  • @neoseeyou

    Participant

    Hello everybody

    For each post users created, i have a special taxonomy i apply. Each element in this taxonomy have an image as attachment, so when i attach one tax in the back office to a post, it display a “medal” to the post in the front office.

    I want to display this “medal” tax in the activity stream of the user and on the global activity (all activities of the website)

    This the code i use to display the custom tax:

    <?php foreach (get_the_terms(get_the_ID(), 'niveau') as $cat) : ?><a class="medaldetail" href="<?php echo get_term_link($cat->term_id, 'niveau'); ?>"><img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" /></a><?php endforeach; ?>

    Which buddypress template i must override to be able to display this?

    Thank you very much!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add custom taxonomy image on posts display in activity feed’ is closed to new replies.
Skip to toolbar