Manual field groups not showing up on setting page after adding groups via code

Support MB Settings Page Manual field groups not showing up on setting page after adding groups via code

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #48499
    goninski@gmail.com[email protected]
    Participant

    Hi there

    I have a custom plugin which creates a setting page and add some field groups.
    In addition there are also some manual field groups for this setting page (created with the builder).

    After any update of my plugin the manually created field groups are not showing up any more in the setting page. I need to resave every field group again, only then they are showing up again.

    This seems a newer bug because for long time this was never a problem.

    See short video
    https://vento.so/view/c643bf0d-381c-495d-b49d-e75d6f1d9ff6?utm_medium=share

    Hope this can be fixed. It's very dangerous for all my sites.

    Thanks
    François

    #48504
    PeterPeter
    Moderator

    Hello François,

    Thanks for reaching out.

    Can you please share the code or the custom plugin that you used to create the custom settings page? I will add it to my site and investigate the issue.

    #49007
    goninski@gmail.com[email protected]
    Participant

    Hi Peter, I sent you the code a long time ago but never heard anything. Now I think I found the reason for this new problem. It's connected to the new local json functionality. As soon the local mb-json folder exists the described problem occurs. I think this is a bug. Can you confirm?

    #49009
    PeterPeter
    Moderator

    Hello,

    Thanks for the details.

    It isn't a bug and is working properly as it is. If you install your custom plugin, including the local JSON file, you need to go to the Meta Box > Field groups to sync the changes.
    If you have the local JSON file in the plugin/theme folder, it will be loaded as a higher priority than the field group in the builder.

    Following the documentation https://docs.metabox.io/local-json/

    #49024
    goninski@gmail.com[email protected]
    Participant

    Hello, the json folder is still empty. I just created it to possibly use it for some field groups in addition to my classicly coded field groups which comes via my plugin. So if this is not a bug, you wanna tell me that it's not possible any more to bring in classicly coded field groups via a plugin as soon the json folder exists?

    #49027
    PeterPeter
    Moderator

    Hello,

    If you want to use some field groups with code in a plugin, you can use the PHP code beside the JSON file. Following the documentation https://docs.metabox.io/creating-fields-with-code/

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