adamfuller

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • adamfuller
    Participant

    Great, thanks for the pointer. I managed to piece something together:

    <?php $terms = get_terms('tribe_events_cat', 'exclude=823,824'); ?>
    <?php if (!empty($terms) && !is_wp_error($terms)): ?>
    <ul>
    <?php foreach ($terms as $term): ?>
    <li><a href="<?php echo get_term_link($term); ?>" title="View all events filed under <?php echo $term->name; ?>"><?php echo $term->name; ?></a></li>
    <?php endforeach; ?>
    </ul>
    <?php endif; ?>
    
    adamfuller
    Participant

    Thanks for your help.

    I’ve discovered that simply removing all the logic relating to categories actually goes some way to producing a solution for me.

    I’m gonna have a play around when I have time and see what better solutions I can come up with. I’ll probably also submit a feature request … makes sense to me if the “relatedness” of the events was also defined by venue/organisation among other things and, as you say, some randomisation could be useful.

    adamfuller
    Participant

    Hi Barry,

    Thanks for the response. Sounds reasonable. I’ll have a play around but I don’t think I’m competent enough to use the filter hook and get it working myself, hah. But if I do succeed I’ll share my code and maybe it’ll find its way to an implemented feature request eh?

    Could you just clarify one thing for me? Wondering if my assumptions are correct about the categories thing? i.e. the function isn’t differentiating between cat->subcat1 and cat->subcat2. I’m not quite sure how the parent categories thing works really.

    Cheers

    adamfuller
    Participant

    It’s always the way … as soon as you post you figure out a solution! I found the fucntion tribe_event_featured_image in “public/template-tags/general.php”, copied it to my own functions.php in my child theme and modified it accordingly so that $featured_image .= $image_src[0];

Viewing 4 posts - 1 through 4 (of 4 total)