WIP
This commit is contained in:
@@ -40,7 +40,7 @@ return [
|
|||||||
"custom-post-types" => [
|
"custom-post-types" => [
|
||||||
[
|
[
|
||||||
"slug" => "team-member",
|
"slug" => "team-member",
|
||||||
"archive" => "true",
|
"archive" => true,
|
||||||
"options" => [
|
"options" => [
|
||||||
"supports" => ["thumbnail", "title", "editor"]
|
"supports" => ["thumbnail", "title", "editor"]
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -326,7 +326,7 @@ class Site
|
|||||||
|
|
||||||
$options = $cpt['options'] ?? [];
|
$options = $cpt['options'] ?? [];
|
||||||
if (isset($cpt["archive"]) && $cpt["archive"]) {
|
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']);
|
$names = $this->generateLabels($cpt['slug']);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user