From e920e53325fa42ae13b45dc74e844bb4fda728f0 Mon Sep 17 00:00:00 2001 From: Kurtis Holsapple Date: Wed, 7 May 2025 09:12:58 -0700 Subject: [PATCH] WIP --- config.php | 2 +- .../open-function-computers-llc/rad-theme-engine/src/Site.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.php b/config.php index 650950e..7027c95 100644 --- a/config.php +++ b/config.php @@ -40,7 +40,7 @@ return [ "custom-post-types" => [ [ "slug" => "team-member", - "archive" => "true", + "archive" => true, "options" => [ "supports" => ["thumbnail", "title", "editor"] ], diff --git a/vendor/open-function-computers-llc/rad-theme-engine/src/Site.php b/vendor/open-function-computers-llc/rad-theme-engine/src/Site.php index d743f25..8990083 100644 --- a/vendor/open-function-computers-llc/rad-theme-engine/src/Site.php +++ b/vendor/open-function-computers-llc/rad-theme-engine/src/Site.php @@ -326,7 +326,7 @@ class Site $options = $cpt['options'] ?? []; if (isset($cpt["archive"]) && $cpt["archive"]) { - $options["has_archive"] = $this->humanize($cpt["slug"], true); + $options["has_archive"] = Util::slugify($this->humanize($cpt["slug"], true)); } $names = $this->generateLabels($cpt['slug']);