From 92a5ea7874b90ad6e6fb9fa3e969ddc78f362933 Mon Sep 17 00:00:00 2001 From: Kurtis Holsapple Date: Tue, 6 May 2025 08:59:11 -0700 Subject: [PATCH] WIP --- config.php | 7 ++++++- .../rad-theme-engine/src/Site.php | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config.php b/config.php index 33223d5..391a014 100644 --- a/config.php +++ b/config.php @@ -37,7 +37,12 @@ return [ * * here is where you can define your custom post types easily */ - "custom-post-types" => [], + "custom-post-types" => [ + [ + "slug" => "team-member", + "archive" => "true", + ] + ], /** 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 45a6652..33d22d9 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 @@ -321,6 +321,9 @@ class Site $this->cptSlugs[] = $cpt["slug"]; $options = $cpt['options'] ?? []; + if (isset($cpt["archive"]) && $cpt["archive"]) { + $options["has_archive"] = $this->humanize($cpt["slug"], true); + } $names = $this->generateLabels($cpt['slug']); $newCpt = new PostType($cpt['slug'], $options, $names);