Custom fields import issue

Support Meta Box AIO Custom fields import issue

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #49332
    DIDIER FELICITEDIDIER FELICITE
    Participant

    Hi,
    Exported taxonomies or page settings custom fields are imported with the default ‘Post type-> post' location rules. Changing the location rule to ‘Settings page’ results in an error.

    AIO 3.3.1

    Original
    https://prnt.sc/HeYFEtyjqhm3

    Imported
    https://prnt.sc/qRm2RhUeqvk5

    #49337
    PeterPeter
    Moderator

    Hello,

    Thanks for reaching out.

    Do you mean the Location Rule always falls back to Posts? Can you please try to re-select the settings page and see how it works?

    #49366
    DIDIER FELICITEDIDIER FELICITE
    Participant

    Hi Peter,

    Re-selecting the settings pages resulted in an error, but this issue is gone in version 3.3.2.

    However, when I import custom fields for taxonomies and settings pages (which were imported first), the Location Rule always falls back to Posts. There are no issues with custom post types.

    Here is the JSON output of the custom fields for taxonomies:

    {
        "$schema": "https://schemas.metabox.io/field-group.json",
        "fields": [
            {
                "type": "single_image",
                "id": "category_image",
                "name": "Illustration",
                "columns": 6,
                "admin_columns": "after cb"
            },
            {
                "type": "text",
                "id": "amelia_category_id",
                "name": "Planning Pro ID",
                "columns": 6,
                "admin_columns": "after category_image"
            }
        ],
        "id": "meta_tax_category",
        "modified": 1759387221,
        "taxonomies": [
            "category",
            "categorie-services"
        ],
        "title": "Metas Taxonomie Catégories"
    }

    Another for a setting page:

    {
        "$schema": "https://schemas.metabox.io/field-group.json",
        "custom_settings": {
            "tab_style": {
                "id": "tab_style",
                "key": "tab_style",
                "value": "box"
            },
            "tab_default_active": {
                "id": "tab_default_active",
                "key": "tab_default_active",
                "value": ""
            },
            "tab_remember": {
                "id": "tab_remember",
                "key": "tab_remember",
                "value": false
            }
        },
        "fields": [
            {
                "name": "Image de fond de l'en-tête",
                "id": "recherche_image_fond",
                "type": "single_image",
                "columns": 2,
                "tab": "entete"
            },
            {
                "name": "Titre par défaut (si aucun mot-clé)",
                "id": "recherche_titre",
                "type": "text",
                "std": "Résultats de votre recherche",
                "columns": 4,
                "limit_type": "character",
                "tab": "entete"
            },
            {
                "name": "Texte introductif",
                "id": "recherche_intro",
                "type": "textarea",
                "std": "Voici ce que nous avons trouvé pour votre recherche.",
                "columns": 6,
                "limit_type": "character",
                "tab": "entete"
            },
            {
                "name": "Afficher un filtre de type ou catégorie ?",
                "id": "recherche_afficher_filtre",
                "type": "switch",
                "std": false,
                "columns": 2,
                "tab": "affichage"
            },
            {
                "name": "Nombre de résultats par page",
                "id": "recherche_nb_resultats_par_page",
                "type": "number",
                "std": 12,
                "columns": 2,
                "tab": "affichage"
            },
            {
                "name": "Afficher un extrait de contenu ?",
                "id": "recherche_afficher_extrait",
                "type": "switch",
                "std": true,
                "columns": 2,
                "tab": "affichage"
            },
            {
                "name": "Afficher l’image à la une ?",
                "id": "recherche_afficher_image",
                "type": "switch",
                "std": true,
                "columns": 6,
                "tab": "affichage"
            },
            {
                "name": "Message personnalisé (aucun résultat)",
                "id": "recherche_message_aucun_resultat",
                "type": "textarea",
                "std": "Aucun contenu ne correspond à votre recherche. Essayez un autre mot-clé.",
                "limit_type": "character",
                "tab": "aucun"
            },
            {
                "name": "Message d'encouragement à nous contacter",
                "id": "recherche_message_contact",
                "type": "text",
                "std": "Vous pouvez également nous contacter pour toute demande personnalisée.",
                "limit_type": "character",
                "tab": "aucun"
            },
            {
                "name": "Lien vers la page de contact",
                "id": "recherche_lien_contact",
                "type": "url",
                "tab": "aucun"
            }
        ],
        "id": "sections_page_recherche",
        "modified": 1755584284,
        "settings_pages": [
            "sp_pg_recherche"
        ],
        "tab_style": "box",
        "tabs": {
            "entete": {
                "label": "En-tête",
                "icon": ""
            },
            "affichage": {
                "label": "Affichage",
                "icon": ""
            },
            "aucun": {
                "label": "Aucun résultat",
                "icon": ""
            }
        },
        "title": "Contenu page Recherche"
    }
    #49368
    PeterPeter
    Moderator

    Hello,

    Thanks for your feedback. I've escalated this issue to the development team to fix it in the next update of the Meta Box plugins. In the meantime, you can re-select the Location of the field group manually.

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