Help Hiding Categories from Gridview.php

Home Forums Calendar Products Events Calendar PRO Help Hiding Categories from Gridview.php

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #42593
    Jason
    Participant

    I’m trying to selectively hide & show categories from the Gridview.php and also have the same ability for List.php, where some categories will only display on Gridview, some will only display on List and some will display on both.
    I’ve tried adapting the edits from this thread that worked for the sidebar widget, but haven’t been successful in modifying the table.php file.
    https://tri.be/support/forums/topic/help-excluding-event-categories-from-calendar-widget/
    Any help would be greatly appreciated.

    I’m also wondering if it’s possible to have tribe_events_title(); display the date when someone is viewing the events on a single day.

    Thanks,

    Jason

    #42618
    Jonah
    Participant

    Hi Jason,

    Some thing like this (https://gist.github.com/jo-snips/2270007) should help you. This will allow you to exclude (or include if you change the operator) categories from the grid. If you change the eventDisplay ‘month’ condition to ‘list’ then you can have it affect the list. You’d want to duplicate the function and give it a different name though. How does that work for you?

    You should be able to echo the day on a single day by using something like this: http://snippi.com/s/ecjg838

    Does that help?

    – Jonah

    #45562
    Jason
    Participant

    Thanks Jonah.

    All of this was very helpful. Sorry for the delay in replying.

    -Jason

    #45569
    Jonah
    Participant

    You’re welcome Jason. Let us know if there’s anything else you need.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Help Hiding Categories from Gridview.php’ is closed to new replies.