Ready to get started?Download WordPress


Events Manager
[resolved] exclude category from drop down list (4 posts)

  1. Brian
    Posted 8 months ago #

    So I am successfully excluding an event category from the full calendar and from the list of events by using [fullcalendar category="-12"] and [events_list category="-12"] respectively. My problem arises with the category drop down box that is a part of the full calendar. The hidden category shows in that drop down and then becomes visible.


    Is this a bug? Is there a way to correct this?


  2. angelo
    NetWebLogic Support
    Posted 8 months ago #

    try this snippet

    function em_wpfullcalendar_category_label($taxonomy_args,$taxonomy){
     if ( $taxonomy->name == 'event-categories'){
      $taxonomy_args['exclude'] = '77';
     return $taxonomy_args;

    where 77 is your category id

    As for where to paste this : http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/

  3. Brian
    Posted 8 months ago #

    That worked brilliantly! Thanks!

    I inserted it into the functions.php of my child-theme.

    Would be nice if someone would turn this into a little plugin that hooked into settings page of wp-fullcalendar to add category exclusion there.

    Thanks again!

  4. angelo
    NetWebLogic Support
    Posted 7 months ago #

    glad it worked.


You must log in to post.

About this Plugin

About this Topic