Settings page - cpts are visible for one second then dissapear

Support MB Settings Page Settings page - cpts are visible for one second then dissapear

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #49867
    Patrik JanssonPatrik Jansson
    Participant

    They are visible with the correct content inside for one second when opening the settings page.
    If i click save, they appear for one second again and dissapear again.
    It worked before.

    I tried disabling other plugins to rule out conflicts.

    METABOX 5.11.4 and AIO 3.6.1

    Warning: Undefined array key "fields" in /customers/5/b/d/hallebyggvaror.se/httpd.www/wp-content/plugins/meta-box-aio/vendor/wpmetabox/mbb-parser/src/Unparsers/MetaBox.php on line 488

    
    {
        "$schema": "https://schemas.metabox.io/settings-page.json",
        "capability": "e6
    
    {
        "$schema": "https://schemas.metabox.io/field-group.json",
        "fields": [
            {
                "type": "time",
                "id": "mandag_fran",
                "name": "Måndag till fredag (från)",
                "columns": 2
            },
            {
                "type": "time",
                "id": "mandag_till_fredag_till",
                "name": "Måndag till fredag (till) ",
                "columns": 2
            },
            {
                "type": "divider",
                "id": "divider_pwbhs5iw4y",
                "name": "Divider"
            },
            {
                "type": "time",
                "id": "lordag_fran",
                "name": "Lördag (från)",
                "columns": 2
            },
            {
                "type": "time",
                "id": "lordag_till",
                "name": "Lördag (till)",
                "columns": 2
            }
        ],
        "id": "oppettiderna",
        "modified": 1774892783,
        "settings_pages": [
            "oppettider"
        ],
        "show": {
            "input_value": []
        },
        "style": "default",
        "title": "Öppettiderna"
    }
    
    #49870
    PeterPeter
    Moderator

    Hello Patrik,

    Thanks for reaching out.

    Please edit the field group, click on the Toggle Rules add one more entry and remove it, save the field group again to fix the issue, check this screenshot https://imgur.com/9kFXCx4

    You can see the Show/Hide entry in the exported JSON file

    
        "show": {
            "input_value": []
        },
    

    Following the documentation https://docs.metabox.io/extensions/meta-box-show-hide/

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