MB Custom Table in a multisite environment

Support MB Custom Table MB Custom Table in a multisite environmentResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22374
    jpascalejpascale
    Participant

    Hi! I'm trying to use MB Custom Table in a multisite environment.
    Is there anything different about using MB Custom Tables with WP Multisite?

    This is the code I'm using:
    $meta_boxes[] = [
    'title' => esc_html__( 'NonMLs Videos FG', 'text-domain' ),
    'storage_type' => 'custom_table',
    'table' => 'nonmlsvideo',
    'id' => 'nonmls-videos-fg',
    etc

    I set up the table using phpmyAdmin.
    The name of the table in the database is: asites_10_nonmlsvideo.
    I've tried change the 'table' parameter in the metabox code to 'asites_10_nonmlsvideo', but that didn't help.

    Is there something specific I need to know about running this in multisite?
    Or is there problem probably a coding error on my part somewhere else?

    Thanks, James

    #22378
    Long NguyenLong Nguyen
    Moderator

    Hi,

    The plugin MB Custom Table also works in the multisite environment. If you use the phpMyadmin to create a table, please follow the notes to make the custom field works with that table.
    https://docs.metabox.io/extensions/mb-custom-table/#using-existing-tables.
    https://docs.metabox.io/extensions/mb-custom-table/#notes

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