From 108fca0bcc7b3a7064d3aef70de9ff4aacc2702c Mon Sep 17 00:00:00 2001 From: Pascal Martineau Date: Thu, 25 Sep 2025 10:58:26 -0400 Subject: [PATCH] fix: hierarchical location --- wp-content/themes/ccat/acf-json/group_post_location.json | 6 +++--- wp-content/themes/ccat/includes/cpt/location.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/ccat/acf-json/group_post_location.json b/wp-content/themes/ccat/acf-json/group_post_location.json index 2d3c29f..0febbf5 100644 --- a/wp-content/themes/ccat/acf-json/group_post_location.json +++ b/wp-content/themes/ccat/acf-json/group_post_location.json @@ -89,7 +89,7 @@ "aria-label": "", "type": "clone", "instructions": "", - "required": 1, + "required": 0, "conditional_logic": [ [ { @@ -108,7 +108,7 @@ "clone": [ "field_address_geo_location" ], - "display": "seamless", + "display": "group", "layout": "block", "prefix_label": 0, "prefix_name": 0, @@ -326,5 +326,5 @@ "graphql_types": "", "acfe_meta": "", "acfe_note": "", - "modified": 1758811729 + "modified": 1758812298 } diff --git a/wp-content/themes/ccat/includes/cpt/location.php b/wp-content/themes/ccat/includes/cpt/location.php index 0a828c7..4a25aca 100644 --- a/wp-content/themes/ccat/includes/cpt/location.php +++ b/wp-content/themes/ccat/includes/cpt/location.php @@ -42,7 +42,7 @@ function ccat_location_register_post_type() { 'hierarchical' => true, 'show_ui' => true, 'show_in_nav_menus' => false, - 'supports' => array( 'title', 'thumbnail', 'excerpt', 'revisions' ), + 'supports' => array( 'title', 'thumbnail', 'excerpt', 'revisions', 'page-attributes' ), 'has_archive' => false, 'rewrite' => array( 'slug' => 'lieu',