Title: default category for different users
Last modified: August 21, 2016

---

# default category for different users

 *  Resolved [olafnekeman](https://wordpress.org/support/users/olafnekeman/)
 * (@olafnekeman)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/default-category-for-different-users/)
 * Hi,
 * I’m trying to set a category for different users. I’ve got two types of employers
   on my site. I’m using the following code to create two different forms. Can you
   show me how I can set a default category for the two types of users?
 *     ```
       switch ($key) {
       						case 'company_name':
       							// Modifications Scholieren spot 16-6-14
       							if (current_user_on_level($level_particulier)) {
       								$field['label']='Uw Naam';
       								} elseif(current_user_on_level($level_zakelijk)) {
       									$field['label']='Bedrijfsnaam';
       									} else {
       										$field['label']='Naam';
       									};
       ```
   
 * [https://wordpress.org/plugins/wp-job-manager/](https://wordpress.org/plugins/wp-job-manager/)

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

 *  Plugin Author [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/default-category-for-different-users/#post-5041448)
 * If you set the [‘value’] for the particular field, it will be the default value
   used.
 *  Thread Starter [olafnekeman](https://wordpress.org/support/users/olafnekeman/)
 * (@olafnekeman)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/default-category-for-different-users/#post-5041489)
 * I tried this but it doesn’t work.
    `case ‘job_category’: if (current_user_on_level(
   $level_particulier)) { $field[‘value’]=’Klussen’; } elseif(current_user_on_level(
   $level_zakelijk)) { $field[‘value’]=’Vacatures’; } else { $field[‘value’]=’Vacatures’;};`
   Do you have other thoughts on this issue?
 *  Plugin Author [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/default-category-for-different-users/#post-5041497)
 * You need to use the category ID for the value.

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

The topic ‘default category for different users’ is closed to new replies.

 * ![](https://ps.w.org/wp-job-manager/assets/icon-256x256.gif?rev=2975257)
 * [WP Job Manager](https://wordpress.org/plugins/wp-job-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-job-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-job-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-job-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-job-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-job-manager/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/default-category-for-different-users/#post-5041497)
 * Status: resolved