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']);