WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Chris
    Member
    Posted 1 year ago #

    Cancel that, appears to be another plugin at fault.

  2. Chris
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year ago #

    Hey Chris,

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

    thanks

  4. Phil
    Member
    Posted 11 months 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
    Member
    Posted 11 months 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
    Member
    Posted 11 months 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

About this Topic

Tags