Display all event categories in sidebar

Home Forums Calendar Products Events Calendar PRO Display all event categories in sidebar

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #25607
    John
    Participant

    I am trying to display an unordered list of all the current categories within the plugin in my sidebar. I want to give the users another way to easily navigate through events by category. How can I do this?

    #25611
    John
    Participant

    I should probably elaborate on this a bit. I do have PHP experience, but I wanted to see if there is function with the plugin which mimics the core the_category function.

    #25642
    Barry
    Member

    Hi John. Though by default it produces a definition list (rather than an unordered list), does tribe_meta_event_cats() come close to meeting your requirements?

    #26164
    Kane
    Participant

    I did this…

    http://snipplr.com/view/67630/display-categories-in-your-sidebar-with-the-events-calendar/

    ..but would like a solution that only lists the categories of upcoming events.

    #26177
    Barry
    Member

    Right, so if you have Categories A, B, C and D and the upcoming events only happen to include Categories C and D those are the ones you want to list?

    If think you’re going to have to get creative there. Definitely possible though. I put this snippet of SQL together, it might give you some ideas: http://pastebin.com/8QECQhjH (you may need to tweak it further to meet your specific requirements).

    #26673
    Kane
    Participant

    Exactly. This is great, Barry. Thanks!

    #26674
    Barry
    Member

    No problem at all 🙂

    #977991
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Display all event categories in sidebar’ is closed to new replies.