Calendar View AJAX Paginate & WordPress functions.php – not loading my functions

Home Forums Calendar Products Events Calendar PRO Calendar View AJAX Paginate & WordPress functions.php – not loading my functions

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1093625
    Robert Payton
    Participant

    So, I used the code Jonah provided in this topic to exclude an events category from my calendar: https://theeventscalendar.com/support/forums/topic/exclude-one-category-from-upcoming-events-list/

    It works on page load, but doesn’t work when you use the month pagination to move to the next / previous month. All of the sudden, the events that were hidden on page load using the functions.php show up on the calendar.

    My event is titled Clubhouse Event and takes place on April 1st: http://villageimprovement.gooberdev.com/events/

    How do I trigger the functions.php file again to run my exclude code?

    Thanks!

    #1093756
    George
    Participant

    Hey Robert,

    I’m sorry, but that code is from 2013 and is no longer valid code at all. It cannot be used with the current versions of our plugins, and since we cannot support non-current versions of our plugins, that code cannot be used successfully.

    I’m surprised it worked at all, and only failed in AJAX requests!

    If you want to keep events of a specific category hidden from your calendar, your best bet is just to write some custom CSS. Add code like this to the bottom of your theme’s style.css file:


    .type-tribe_events.tribe-events-category-barbecue {
    display: none !important;
    }

    That’s for events in the category “Barbecue.” You can tweak that name to whichever category you need to add, and if there are multiple categories, just add multiple blocks of code like that above; one for each category.

    Best of luck with your customizations!
    George

    #1100125
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Calendar View AJAX Paginate & WordPress functions.php – not loading my functions’ is closed to new replies.