Title: Default Taxonomy Term
Last modified: August 30, 2016

---

# Default Taxonomy Term

 *  Resolved [jcrea](https://wordpress.org/support/users/jcrea/)
 * (@jcrea)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/default-taxonomy/)
 * Can’t set a default term for taxonomy list. When you check the term to be default
   and save the form the check is gone and it defaults to “— Please select a XXX—“
 * [https://wordpress.org/plugins/gravity-forms-custom-post-types/](https://wordpress.org/plugins/gravity-forms-custom-post-types/)

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

 *  Plugin Author [Dave from Gravity Wiz](https://wordpress.org/support/users/spivurno/)
 * (@spivurno)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/default-taxonomy/#post-6811670)
 * Hi jcrea, you are correct and this is definitely a bug. Gravity Forms is going
   to be adding most of this plugins functionality to core in the near(ish) future
   so while we’re fixing small bugs were not fixing everything.
 * Here’s an alternate solution as a stop-gap.
 * 1. Enable “Allow field to be dynamically populated” option for the Tax field.
   
   2. Add “default_term” as parameter name: [http://grab.by/MIE4](http://grab.by/MIE4)
   3. Copy and paste this code into your theme’s *functions.php* file: add_filter(‘
   gform_field_value_default_term’, function() { return 444; } ); 4. Update “444”
   to the term ID of the term you wish to set as the default.
 *  Thread Starter [jcrea](https://wordpress.org/support/users/jcrea/)
 * (@jcrea)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/default-taxonomy/#post-6811716)
 * Thanks David for this, however, what if I have multiple forms that each need 
   a different default term or a form that has multiple taxonomies each with a different
   default term?
    Thanks.
 *  Plugin Author [Dave from Gravity Wiz](https://wordpress.org/support/users/spivurno/)
 * (@spivurno)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/default-taxonomy/#post-6811717)
 * Here’s an alternate version that allows you to specify a different default value
   per field ID:
 * [http://pastie.org/private/eqs3xt1vugtjbo4ozkpug](http://pastie.org/private/eqs3xt1vugtjbo4ozkpug)
 *  Thread Starter [jcrea](https://wordpress.org/support/users/jcrea/)
 * (@jcrea)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/default-taxonomy/#post-6811720)
 * Thanks again David.
    One more question. If you have multiple forms, how can you
   distinguish between which form gets the value applied?
 *  Plugin Author [Dave from Gravity Wiz](https://wordpress.org/support/users/spivurno/)
 * (@spivurno)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/default-taxonomy/#post-6811721)
 * The $field object also has a formId property. You can check for a specific form
   and field like so:
 * [http://pastie.org/private/g9mztt7nhlxvr3cgoo2sza](http://pastie.org/private/g9mztt7nhlxvr3cgoo2sza)
 *  Thread Starter [jcrea](https://wordpress.org/support/users/jcrea/)
 * (@jcrea)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/default-taxonomy/#post-6811722)
 * Thanks again David!

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

The topic ‘Default Taxonomy Term’ is closed to new replies.

 * ![](https://ps.w.org/gravity-forms-custom-post-types/assets/icon-256x256.png?
   rev=2542252)
 * [Gravity Forms + Custom Post Types](https://wordpress.org/plugins/gravity-forms-custom-post-types/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-custom-post-types/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/reviews/)

## Tags

 * [default](https://wordpress.org/support/topic-tag/default/)
 * [term](https://wordpress.org/support/topic-tag/term/)

 * 6 replies
 * 2 participants
 * Last reply from: [jcrea](https://wordpress.org/support/users/jcrea/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/default-taxonomy/#post-6811722)
 * Status: resolved