Gravity Forms + Custom Post Types
Taxonomy field broken (6 posts)

  1. Chris
    Posted 3 years ago #

    Cancel that, appears to be another plugin at fault.

  2. Chris
    Posted 3 years ago #

    Nope, turns out it's not the other plugin. At least, not entirely.

    When used in conjunction with the plugin Gravity Forms - Update Post, this plugin does not allow taxonomies to be updated because GFCPTAddonBase->save_taxonomy_field() passes wp_set_object_terms() a value of "true" for the "append" argument.

    Since this plugin is purely aimed at creating new posts for which it's reasonable to assume no terms exist that argument can (and should) be false. If nothing else, for the sake of being a good neighbour and not breaking the other plugin.

  3. bradvin
    Plugin Author

    Posted 3 years ago #

    Hey Chris,

    I am looking at updating the plugin in the next week, so I will include this change


  4. Phil
    Posted 3 years ago #

    I too was using GFCPT to update existing posts, with taxonomies represented by checkbox fields. The GFCPT plugin successfully assigns new taxonomies (appends new), but fails to unassign taxonomies whose checkbox is unchecked.

    As Chris noted, the issue appears resolved once I remove the "true" (for the "append") argument from wp_set_object_terms() in GFCPTAddonBase->save_taxonomy_field() (under the condition of $field['type'] == 'checkbox'). I didn't try to imagine potential use cases this edit might break.

    Thanks Brad and Chris.

  5. StevieG
    Posted 3 years ago #

    I am using this to create Posts and am having the same problem in that the taxonomy field no longer displays the checkbox - a problem as its a required field.
    What is the quick fix I can make?

  6. StevieG
    Posted 3 years ago #

    Just found the conflict is with User Access manager new version 1.2.3 out yesterday. Will this be the same issue?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gravity Forms + Custom Post Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic