Title: [Plugin: Post Notification] Post-notification plugin: exclude categories from user selection
Last modified: August 19, 2016

---

# [Plugin: Post Notification] Post-notification plugin: exclude categories from user selection

 *  [Lionel Chollet](https://wordpress.org/support/users/lionel_chollet/)
 * (@lionel_chollet)
 * [18 years ago](https://wordpress.org/support/topic/plugin-post-notification-post-notification-plugin-exclude-categories-from-user-selection/)
 * [Post-notification plugin](http://wordpress.org/extend/plugins/post-notification/#post-1824)
   
   To prevent users from selecting categories that the site admin doesn’t want them
   to subscribe to:
 * – In ‘post-notification’ folder, open file ‘functions.php’
 * – Find line #294:
    `        $cats = get_categories(array('hide_empty' => false));`–
   Replace by: `        $cats = get_categories(array('exclude' => 'X,Y', 'hide_empty'
   => false));`
 * – Then find line #296:
    `        $cats = get_categories();`
 * – Replace by:
    `        $cats = get_categories(array('exclude' => 'X,Y'));`
 * where ‘X’ and ‘Y’ represent the ID numbers of the categories you want to exclude,
   separated by a comma — check your categories’ ID# at [http://your_domain/your_wordpress_folder/wp-admin/categori…](http://your_domain/your_wordpress_folder/wp-admin/categori…)–;
   sort your excluded categories’ ID# in ascending order.

Viewing 1 replies (of 1 total)

 *  815664
 * [17 years, 10 months ago](https://wordpress.org/support/topic/plugin-post-notification-post-notification-plugin-exclude-categories-from-user-selection/#post-781371)
 * I have installed this plugin but the choice of category doesn’t appear in the
   notification form.
    Is there a possibility for a subscriber (and not for a registered
   user) to select one category for the one he will receive post notification ?

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Post Notification] Post-notification plugin: exclude categories
from user selection’ is closed to new replies.

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [exclude](https://wordpress.org/support/topic-tag/exclude/)
 * [select](https://wordpress.org/support/topic-tag/select/)

 * 1 reply
 * 2 participants
 * Last reply from: 815664
 * Last activity: [17 years, 10 months ago](https://wordpress.org/support/topic/plugin-post-notification-post-notification-plugin-exclude-categories-from-user-selection/#post-781371)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
