Code ignored in favor of Builder?

Support MB Builder Code ignored in favor of Builder?Resolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15321
    GarySmithGarySmith
    Participant

    I've got quite a few questions as I'm looking to migrate to MB over ACF Pro. Short of some interface / design features MB seems superior to ACF which is why I want to switch. But I'm trying to figure out a few oddities.

    I'm using AIO and the builder included as part of that seems to ignore the code version of the metaboxes. Its possible I'm just not familiar enough with MB to understand the setup. ACF is the opposite, you can use the field builder but if its defined in code, any changes to the builder aren't reflected unless the code is updated.

    Is there a way to have MB prefer the code as I've found certain feature / functions do not seem to have any association in the builder and need to be defined in code, deleting the groups, testing the code then re-importing the groups for the builder is tedious.

    #15327
    Anh TranAnh Tran
    Keymaster

    Hi Gary,

    Thanks for choosing Meta Box!

    In Meta Box, code that you're using in your PHP files and the field groups you created in the MB Builder work independently and simultaneously. There's no connection between the code and the fields created in MB Builder.

    Unless you export the code from the MB Builder and put it in your theme/plugin. In that case, what loads first will take effect. But you should avoid this as it's confusing. If you want to use code, you should move the field group in MB Builder to Trash (or switch to Draft) to prevent it from loading.

    Besides, in MB Builder, the custom attributes feature is powerful enough for you to add custom settings for the meta box or for the fields. Using this feature will help you achieve the same effect as using code. However, if you want to use code, please just use it.

    #15331
    GarySmithGarySmith
    Participant

    Ultimately I would use code, but its much quicker to use the builder to piece together all the elements of metabox combinations, I had no intention of using the 2 simultaneously. I was just curious of how it worked / what I found. Its good to know now.

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