{"id":315,"date":"2026-06-27T12:40:44","date_gmt":"2026-06-27T12:40:44","guid":{"rendered":"https:\/\/tools.dwiyanti.com\/blog\/?p=315"},"modified":"2026-06-27T12:40:45","modified_gmt":"2026-06-27T12:40:45","slug":"schema-webpage-versi-deepseek","status":"publish","type":"post","link":"https:\/\/tools.dwiyanti.com\/blog\/schema-webpage-versi-deepseek","title":{"rendered":"Schema WebPAge Versi DeepSeek"},"content":{"rendered":"<pre style=\"white-space:pre-wrap;\">\n\nfunction add_enhanced_schema() {\n    if (is_front_page() || is_home()) return;\n    if (!is_page()) return;\n    \n    global $post;\n    if ($post->post_title === 'Home' || $post->post_name === 'home') return;\n    \n    \/\/ Data dasar\n    $title = get_the_title($post);\n    $url = get_permalink($post);\n    $site_url = home_url();\n    $description = get_optimized_meta_description();\n    $categories = get_the_category();\n    $primary_category = !empty($categories) ? $categories[0]->name : '';\n    \n    \/\/ Schema Graph\n    $schema = [\n        \"@context\" => \"https:\/\/schema.org\",\n        \"@graph\" => [\n            \/\/ 1. Organization (Global)\n            [\n                \"@type\" => \"Organization\",\n                \"@id\" => $site_url . \"\/#organization\",\n                \"name\" => \"Dwi Yanti SEO\",\n                \"url\" => $site_url,\n                \"logo\" => [\n                    \"@type\" => \"ImageObject\",\n                    \"url\" => get_site_icon_url()\n                ],\n                \"sameAs\" => [\n                    \"https:\/\/www.linkedin.com\/in\/dwiyanti\",\n                    \"https:\/\/twitter.com\/dwiyanti\"\n                ]\n            ],\n            \n            \/\/ 2. WebSite (Global)\n            [\n                \"@type\" => \"WebSite\",\n                \"@id\" => $site_url . \"\/#website\",\n                \"url\" => $site_url,\n                \"name\" => \"Dwi Yanti SEO\",\n                \"description\" => \"SEO Specialist and Technical SEO Strategist\",\n                \"publisher\" => [\n                    \"@id\" => $site_url . \"\/#organization\"\n                ]\n            ],\n            \n            \/\/ 3. Breadcrumb\n            [\n                \"@type\" => \"BreadcrumbList\",\n                \"@id\" => $url . \"#breadcrumb\",\n                \"itemListElement\" => [\n                    [\n                        \"@type\" => \"ListItem\",\n                        \"position\" => 1,\n                        \"name\" => \"Home\",\n                        \"item\" => $site_url\n                    ],\n                    $primary_category ? [\n                        \"@type\" => \"ListItem\",\n                        \"position\" => 2,\n                        \"name\" => $primary_category,\n                        \"item\" => get_category_link($categories[0]->term_id)\n                    ] : null,\n                    [\n                        \"@type\" => \"ListItem\",\n                        \"position\" => 3,\n                        \"name\" => $title\n                    ]\n                ]\n            ],\n            \n            \/\/ 4. Article (Utama)\n            [\n                \"@type\" => \"Article\",\n                \"@id\" => $url . \"#article\",\n                \"url\" => $url,\n                \"headline\" => $title,\n                \"description\" => $description,\n                \"inLanguage\" => \"id-ID\",\n                \"datePublished\" => get_the_date('c', $post),\n                \"dateModified\" => get_the_modified_date('c', $post),\n                \"author\" => [\n                    \"@type\" => \"Person\",\n                    \"name\" => \"Dwi Yanti\",\n                    \"@id\" => \"https:\/\/me.dwiyanti.com\/#dwi-yanti\",\n                    \"url\" => \"https:\/\/me.dwiyanti.com\"\n                ],\n                \"publisher\" => [\n                    \"@id\" => $site_url . \"\/#organization\"\n                ],\n                \"mainEntityOfPage\" => [\n                    \"@type\" => \"WebPage\",\n                    \"@id\" => $url\n                ],\n                \"image\" => get_article_images($post),\n                \"keywords\" => get_keywords($post),\n                \"about\" => [\n                    \"@type\" => \"Thing\",\n                    \"name\" => $primary_category\n                ],\n                \"speakable\" => [\n                    \"@type\" => \"SpeakableSpecification\",\n                    \"cssSelector\" => [\"h1\", \".entry-content p:first-of-type\"]\n                ],\n                \/\/ AI\/GEO Optimization\n                \"educationalUse\" => \"informational\",\n                \"learningResourceType\" => \"Article\",\n                \"text\" => wp_strip_all_tags(substr($post->post_content, 0, 1000)),\n                \"interactionStatistic\" => [\n                    \"@type\" => \"InteractionCounter\",\n                    \"interactionType\" => \"https:\/\/schema.org\/CommentAction\",\n                    \"userInteractionCount\" => get_comments_number()\n                ]\n            ]\n        ]\n    ];\n    \n    \/\/ Output\n    echo '<script type=\"application\/ld+json\">' . \"\\n\";\n    echo wp_json_encode($schema, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);\n    echo \"\\n\" . '<\/script>' . \"\\n\";\n}\nadd_action('wp_head', 'add_enhanced_schema');\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>function add_enhanced_schema() { if (is_front_page() || is_home()) return; if (!is_page()) return; global $post; if ($post->post_title === &#8216;Home&#8217; || $post->post_name === &#8216;home&#8217;) return; \/\/ Data dasar $title = get_the_title($post); $url = get_permalink($post); $site_url = home_url(); $description = get_optimized_meta_description(); $categories = get_the_category(); $primary_category = !empty($categories) ? $categories[0]->name : &#8221;; \/\/ Schema Graph $schema = [ &#8220;@context&#8221; => [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-315","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/tools.dwiyanti.com\/blog\/wp-json\/wp\/v2\/posts\/315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tools.dwiyanti.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tools.dwiyanti.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tools.dwiyanti.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tools.dwiyanti.com\/blog\/wp-json\/wp\/v2\/comments?post=315"}],"version-history":[{"count":1,"href":"https:\/\/tools.dwiyanti.com\/blog\/wp-json\/wp\/v2\/posts\/315\/revisions"}],"predecessor-version":[{"id":317,"href":"https:\/\/tools.dwiyanti.com\/blog\/wp-json\/wp\/v2\/posts\/315\/revisions\/317"}],"wp:attachment":[{"href":"https:\/\/tools.dwiyanti.com\/blog\/wp-json\/wp\/v2\/media?parent=315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tools.dwiyanti.com\/blog\/wp-json\/wp\/v2\/categories?post=315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tools.dwiyanti.com\/blog\/wp-json\/wp\/v2\/tags?post=315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}