Display category name and link url in photo view
Thanks for reaching out!
Good job on the customization!
To get the categories in a clickable way you only need to insert the following line into the single-event.php file:
<?php echo tribe_get_event_categories() ?>
This will give you a bullet point list of all the categories.
If you would like to change that, then you will need to format the string that is returned.
This is approx what is being returned:
<div class="tribe-events-list-photo-description tribe-events-content"> <div>Event Category:</div> <ul class="tribe-event-categories"> <li><a href="http://domain.com/events/category/import/" rel="tag">category name</a></li> </ul> </div>
To only return the primary category is a bit tricky, because it’s difficult to define what the primary category is.
Hope this helps you get started. Let me know if I can guide you further.
Stoked to hear that it worked out! 🙂 And thank you for the kind words.
Since this is marked resolved I am going to close this ticket, but if you need anything else related to this topic or another please create a new ticket and we’ll be happy to help.
PS: If you like our plugins, and you didn’t yet do so 🙂 we would be happy to receive a review in the wordpress.org repository. Thanks!
PS2: We’d be also grateful if you would give us feedback on your satisfaction with support. Just click on one of the classy looking emojis below. 🙂 If you can spare a few words, that’s even better. Doublethanks!