Cannot assign custom fields to Post Type (reverts to 'post' every time)

Support General Cannot assign custom fields to Post Type (reverts to 'post' every time)Resolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #47811
    John HatzakisJohn Hatzakis
    Participant

    All of a sudden facing an issue assigning a custom field group to a post type.
    Everything working fine and then suddenly after I edit a custom field group by adding a new group field, it reverted to 'post' as the assigned post type. I exported the fields and noticed that the 'settings' key was empty. The database shows it empty too.

    I deleted the custom field group, re-imported, with a new post_name and a populated settings key in the JSON and after saving the field group it just emptied the settings key again.

    Deactivating and reactivating the plugin does nothing.
    Re-saving permalinks. No change.
    Disabling all plugins. No change.

    New custom field group seems to be assigned to the CPT fine. The problematic custom field group must have some kind of specific combination of fields that is corrupting something.

    See recording: https://www.loom.com/share/246a622f429741a0926229ab45a376d8?sid=f0420f06-8885-4578-a2a8-d4803b5a97e1

    #47814
    PeterPeter
    Moderator

    Hello John,

    You can try to follow this tutorial to increase the PHP setting max_input_vars to fix the issue
    https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/

    Refer to this topic https://support.metabox.io/topic/customer-fields-will-not-assign-to-custom-post-type/

    #47815
    John HatzakisJohn Hatzakis
    Participant

    Hey Peter,
    Think that did the trick, appreciate the help!
    John

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.