Are tabs added via Builder still working?

Support MB Tabs Are tabs added via Builder still working?Resolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21399
    DougDoug
    Participant

    Curious if tabs created with Builder's Custom Attributes are still working? I noticed some of my metaboxes that previously had fields split up into tabs stopped rendering the tabs about a year ago. But I never investigated until now.

    Finally investigating, I looked at the code Builder generates, and it doesn't seem to be including the tabs array key where tab IDs are declared. I have two tabs declared in Builder's custom attributes for the field group. I tested on a basic WP install with no other plugins activated other than MB, MB Tabs, and Classic Editor, with the Twenty Twenty theme activated.

    Here are the custom attributes I specified:
    https://www.dropbox.com/s/jwb5s64p7doghol/metabox_tabs_builder_custom_attributes.png?dl=0

    Screenshot of the rendered MetaBox:
    https://www.dropbox.com/s/3b4ssx8tqm32bj6/metabox_tabs_missing.png?dl=0

    And the resulting code Builder generates:
    https://pastebin.com/J60a7f70

    Note the missing tabs key in the code.

    #21421
    Long NguyenLong Nguyen
    Moderator

    Hi Doug,

    With the Builder, you can use the field Tab to group a/some fields in a tab. See my screenshot https://share.getcloudapp.com/o0u87yx0. Other Tab settings display in the Settings tab https://share.getcloudapp.com/nOuk5ENo.

    #21423
    DougDoug
    Participant

    Thanks, Long. I see the Tab field now. Perhaps this changed at some point a while ago, because we used to need to specify tabs with custom attributes in Builder. All of my older (1+ year) metaboxes set up tabs that way, and those are the ones that no longer work.

    I’m a little surprised an update broke the old way of setting up tabs. There doesn't seem to be any reason to ignore those custom attributes if they already exist. Regardless, I’ll reconfigure them using the newer Builder UI now.

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