Forum Replies Created
-
AuthorPosts
-
July 9, 2014 at 2:50 pm in reply to: Display list of event categories on sitemap/archive page w/ wp_list_categories? #324146adamfullerParticipant
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; ?>
May 8, 2014 at 2:54 am in reply to: Related Events Just Showing Next Scheduled Events Rather Than Related Ones #153651adamfullerParticipantThanks 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.
May 5, 2014 at 1:53 pm in reply to: Related Events Just Showing Next Scheduled Events Rather Than Related Ones #150804adamfullerParticipantHi 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
April 9, 2014 at 1:29 pm in reply to: Get actual url to image rather than html fetched by tribe_event_featured_image? #130209adamfullerParticipantIt’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];
-
AuthorPosts