Home › Forums › Calendar Products › Community Events › Display child/ parent categories on category pages?
- This topic has 5 replies, 2 voices, and was last updated 11 years, 8 months ago by
Casey.
-
AuthorPosts
-
June 18, 2014 at 5:53 am #233054
indrakubicek
ParticipantHi there,
Is there a way to display child-categories on category pages? i.e. when viewing e.g. http://omexchange.staging.wpengine.com/events/category/teacher-training/ I’d like there to be links to all the child categories (e.g. http://omexchange.staging.wpengine.com/events/category/teacher-training/advanced-ashtanga-vinyasa/ ) so that uses can simply narrow down the results to what interests them most.
Similarly, when viewing a child-category, it’d be great if there was a link back to the parent category.
I’ve got the filter-bar plugin which kinda enables this sort of functionaly, but not in a way that is simple and user friendly.
I assume/ hope there is a way to take advantage of the filter-bar functionality to achieve what I’m trying to do, but I’m at a complete loss as to how to go about it and so any help you can provide very warmly received.
Thanks in advance.
June 18, 2014 at 6:35 am #233146Casey
Participantindrakubicek,
Thanks for getting in touch! Unfortunately, we’re unable to provide support for customizations such as this. You could probably write some custom PHP that would do something like this using the get_terms WordPress function.If this is something you’d like to see in a future release, I would suggest submitting it as an idea on our UserVoice page. Our team periodically reviews the most popular ideas for possible inclusion in a future release of the plugin.
Thanks! ๐
-Casey-
June 18, 2014 at 7:10 am #233176indrakubicek
ParticipantHey Casey,
Thanks for your response. I’ll look into trying to work out the php code I’ll need to do this, but – assuming I work out the necessary code, where would I put it? into each individual template for each view? or in functions.php? or what?
Thanks!June 18, 2014 at 1:09 pm #233668Casey
Participantindrakubicek,
You could probably write a function to put in your functions.php file that would use the ‘tribe_events_before_html’ filter to output your content. Something like this: http://pastebin.com/g5EkUvNmHopefully that points you in the right direction! Good luck and thanks! ๐
-Casey-
July 20, 2014 at 8:46 pm #466115Casey
ParticipantI just wanted to follow up and see if youโre all set here or if you still have further questions. Just let me know if you have further questions or if I should go ahead and close out this thread. Thanks! ๐
-Casey-
August 14, 2014 at 8:49 am #666671Casey
ParticipantSince I havenโt heard back from you here, Iโm going to go ahead and close out this thread. Feel free to start a new thread if you have further issues. Thanks! ๐
-Casey-
-
AuthorPosts
- The topic ‘Display child/ parent categories on category pages?’ is closed to new replies.
