From d7e7d248cbe41cd7a9ef9c2fb022b6c4831f99a3 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 31 May 2026 15:22:56 +0000
Subject: [PATCH] =jakevan complete

---
 inc/managers/SEO/render/SchemaOutput.php |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/inc/managers/SEO/render/SchemaOutput.php b/inc/managers/SEO/render/SchemaOutput.php
index 4619d94..31b6859 100644
--- a/inc/managers/SEO/render/SchemaOutput.php
+++ b/inc/managers/SEO/render/SchemaOutput.php
@@ -23,7 +23,7 @@
 	{
 		$schema = [];
 
-
+		$registrar = false;
 		if (is_front_page()) {
 			$schema[] = $this->buildWebsiteSchema(true);
 			$test = $this->buildOrganizationSchema();
@@ -39,7 +39,7 @@
 				$schema[] = $seo->schema()->outputSingularSchema();
 			}
 		}elseif (is_post_type_archive($this->types)) {
-			error_log('It is a post type archive');
+
 			$type = get_queried_object();
 			$type = $type->name;
 			$registrar = Registrar::getInstance($type);
@@ -62,9 +62,9 @@
 			return intval(get_option(BASE.$item.'_archive', false));
 		},Registrar::getFeatured('is_content', 'term'))));
 
-		if (is_page($isContent)){
+		if (!empty($isContent) && is_page($isContent)){
 			$type = get_post_meta(get_the_id(), BASE.'for_type', true);
-			error_log('Type: '.print_r($type, true));
+//			error_log('Type: '.print_r($type, true));
 			if (!empty($type)) {
 				$registrar = Registrar::getInstance($type);
 				if ($registrar) {
@@ -74,6 +74,10 @@
 
 		}
 
+		if ($registrar && !empty($registrar->getSEO()->schema()->extra())) {
+			$schema = array_merge($schema, $registrar->getSEO()->schema()->extra());
+		}
+
 
 
 		$breadcrumbs = $this->buildBreadcrumbs();
@@ -103,6 +107,7 @@
 				'@graph'		=> $schema
 			];
 		}
+
 		return $schema;
 	}
 

--
Gitblit v1.10.0