Custom Fields
Re-Envisioned
Support MB Custom Table Can't save metabox

  • Creator
    Topic
  • #32027
    kesit
    Participant

    Hi,
    I'm using MB Custom Table ver. 2.0.0
    I have trouble to edit and save metabox value from wp-admin. WordPress always said that post updated but it isn't.
    I don't have this dificulties when using $wpdb->update.

    Would you mind to point me a clue what to check about this problem?

    Thanks a lot

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #32038
    Long Nguyen
    Moderator

    Hi Kesit,

    Can you please share the code that creates the custom table and custom fields? Please make sure that the column names match with the field ID as on the documentation https://docs.metabox.io/extensions/mb-custom-table/#creating-custom-tables

    #32118
    kesit
    Participant

    yes, I can confirm that the column name in custom table are equal with field ids in meta box.
    I can write data in custom table from frontpage using $wpdb->insert as on the documentation.

    I can't share the exact code since it has a lot of columns (may be around 50 fields), could it be the source of the problem?

    #32131
    Long Nguyen
    Moderator

    It could be. You can try to save some fields to the custom table, if it works, you can follow this article to increase the PHP setting max_input_vars to resolve this issue.
    https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/

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