Display child/ parent categories on category pages?

Home Forums Calendar Products Community Events Display child/ parent categories on category pages?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #233054
    indrakubicek
    Participant

    Hi 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.

    #233146
    Casey
    Participant

    indrakubicek,
    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-

    #233176
    indrakubicek
    Participant

    Hey 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!

    #233668
    Casey
    Participant

    indrakubicek,
    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/g5EkUvNm

    Hopefully that points you in the right direction! Good luck and thanks! ๐Ÿ™‚

    -Casey-

    #466115
    Casey
    Participant

    I 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-

    #666671
    Casey
    Participant

    Since 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-

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Display child/ parent categories on category pages?’ is closed to new replies.