Jake Vanderwerf
6 days ago 266aa37c48222993bf7bdad6834e31bd08736f5e
inc/registrar/config/seo/Schema.php
@@ -295,7 +295,10 @@
               $class->setMainEntity($itemList);
               $schema = $class->outputSchema();
               error_log('Generated archive schema: '.print_r($schema, true));
               if (JVB_TESTING) {
//                error_log('Generated archive schema: '.print_r($schema, true));
               }
               return $schema;
            }
         );
@@ -351,8 +354,6 @@
         error_log('[SEO]Schema::getConfig Invalid type: '.$type);
         return [];
      }
      jvbDump($this->slug);
      jvbDump($type);
      return JVB()->schemaHelper()::getConfig($this->slug, $type);
   }
@@ -442,7 +443,7 @@
         $title = Resolver::resolve($config['name']??$config['title']??'', $meta);
      } elseif (is_post_type_archive($based) ) {
         $config = $this->getConfig('archive');
         $title = $config['name'];
         $title = Resolver::resolve($config['name'], null);
      } elseif (is_tax($based)) {
         $config = $this->getConfig('archive');
         $meta = Meta::forTerm(get_queried_object_id());