| | |
| | | $class->setIsPartOf(get_home_url().'/#website'); |
| | | $itemList = new render\Thing\Intangible\ItemList\ItemList(); |
| | | $items = new WP_Query([ |
| | | 'post_type' => jvbCheckBase($this->slug), |
| | | 'post_type' => $registrar->getBased(), |
| | | 'posts_per_page'=> 25, |
| | | 'post_status' => 'publish', |
| | | 'fields' => 'ids' |
| | |
| | | $cached = $this->referenceCache->remember( |
| | | $ID, |
| | | function () use ($ID, $type) { |
| | | |
| | | $postType = get_post_type($ID); |
| | | $function = BASE.'build_singular_'.jvbNoBase($postType).'_schema_reference'; |
| | | |
| | | if (function_exists($function)) { |
| | | return $function($ID); |
| | | } |
| | | switch ($type) { |
| | | case 'post': |
| | | $meta = Meta::forPost($ID); |
| | |
| | | } |
| | | $config = $this->getConfig(); |
| | | $class = JVB()->schemaHelper()::classFromConfig($config, $meta); |
| | | $class->delete('about'); |
| | | if ($class) { |
| | | $class->delete('about'); |
| | | } |
| | | |
| | | |
| | | switch ($type) { |
| | | case 'post': |