Title: Category dropdown problem
Last modified: August 21, 2016

---

# Category dropdown problem

 *  Resolved [Antti Koskinen](https://wordpress.org/support/users/kantti/)
 * (@kantti)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/category-dropdown-problem/)
 * Hi,
 * Background,
    I have a calendar that displays all event categories except one.
   Above the calendar I have a dropdown list with all the categories. I used code
   snippet found here ([http://wordpress.org/support/topic/exclude-category-from-drop-down-list?replies=4](http://wordpress.org/support/topic/exclude-category-from-drop-down-list?replies=4))
   to hide the excluded category from the list. And it works great, but..
 * Problem,
    When I select single category from the list and then go back to “all
   event categories” view, the calendar shows events of the excluded category with
   all events from the allowed categories.
 * Question,
    How do I stop the “all event categories” selection from showing the
   excluded category?
 * [https://wordpress.org/plugins/wp-fullcalendar/](https://wordpress.org/plugins/wp-fullcalendar/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [tanyawright](https://wordpress.org/support/users/tanyawright/)
 * (@tanyawright)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/category-dropdown-problem/#post-5098804)
 * Did you find solution to this? I am having this problem too
 *  Thread Starter [Antti Koskinen](https://wordpress.org/support/users/kantti/)
 * (@kantti)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/category-dropdown-problem/#post-5098805)
 * Hi,
 * Well, this is the only code I have in the functions file, but I didn’t have any
   comments to go along with it so I’m not quite sure anymore what it does.
 * I can’t even remember where I got this.. but try it and see what happens!
 *     ```
       function em_wpfullcalendar_category_label($taxonomy_args,$taxonomy){
        if ( $taxonomy->name == 'event-categories'){
         $taxonomy_args['exclude'] = 'id-of-the-category';
        }
        return $taxonomy_args;
       }
   
       add_filter('wpmfc_calendar_taxonomy_args','em_wpfullcalendar_category_label',1,2);
       ```
   
 * BR
    kantti
 *  [tanyawright](https://wordpress.org/support/users/tanyawright/)
 * (@tanyawright)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/category-dropdown-problem/#post-5098806)
 * Hi, thanks i have this already, it takes the excluded cateogires out of the list
   itself but still when you click all categories it shows all the excluded events
   as well
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/category-dropdown-problem/#post-5098807)
 * you can also try to use shortcode like [fullcalendar category=”-x”] where x is
   the event category id (with negative sign to exclude this category)
 *  [clumsycare](https://wordpress.org/support/users/clumsycare/)
 * (@clumsycare)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/category-dropdown-problem/#post-5098808)
 * Hi Angelo,
 * Could you please check out my site? My dropdown is blown out and I’m not sure
   how to fix it. I’ve tried wrapping it in raw, I’ve tried [fullcalendar events
   =”events-category”]
 * Now it’s encased in a white box? I’m not sure what happened. Right now I have
   it just as [fullcalendar].
 * [http://encountersociety.com/list-of-events/](http://encountersociety.com/list-of-events/)
 * Thanks!
    Carrie
 *  Thread Starter [Antti Koskinen](https://wordpress.org/support/users/kantti/)
 * (@kantti)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/category-dropdown-problem/#post-5098809)
 * Please start a new topic.
 * BR,
    kantti

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Category dropdown problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-fullcalendar.svg)
 * [WP FullCalendar](https://wordpress.org/plugins/wp-fullcalendar/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fullcalendar/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fullcalendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fullcalendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fullcalendar/reviews/)

## Tags

 * [full calendar](https://wordpress.org/support/topic-tag/full-calendar/)

 * 6 replies
 * 4 participants
 * Last reply from: [Antti Koskinen](https://wordpress.org/support/users/kantti/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/category-dropdown-problem/#post-5098809)
 * Status: resolved