Nisan 24, 2020

Sayfanızda olması gereken Schema Kodları

Aşağıdaki kodları kendinize göre düzenleyip header eklemeniz yeterli olacaktır.

<?php 
$kelime = "<?php echo $post->content; ?>"; 
(str_word_count($kelime)); 
?> 




	
	<script type="application/ld+json">
{
  "@context": "http://schema.org/",
  "@type": "Review",
   "author": "Yazar", 
  "reviewBody": "<?php echo xss_clean($post->summary); ?>",
  "itemReviewed": {
    "@type": "Blog",
    "name": "<?php echo xss_clean($title); ?>"
  },
  "reviewRating": {
    "@type": "Rating",
    "ratingValue": 5,
    "worstRating": 1,
    "bestRating": 5,
    "reviewAspect": "Ambiance"
  }
}
</script>
	
	 <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "Organization",
      "url": "https://site.com",
      "name": "site title",
      "contactPoint": {
        "@type": "ContactPoint",
        "telephone": "0533 000 00 00",
        "contactType": "Customer service"
      }
    }
    </script>
	
	


	
	<script type="application/ld+json">
{ "@context": "https://schema.org", 
 "@type": "Article",
 "headline": "title",
 "alternativeHeadline": "kısa özet",
 "image": "resim link",
 "author": "Yazaradı", 
 "award": "Şimdiye kadar okuduğum en iyi makale",
 "editor": "yazar adı", 
 "genre": "sayfa baslıgı", 
 "keywords": "etiket", 
 "wordcount": "<?php echo (str_word_count($kelime));  ?>",


"publisher": {
    "@type": "Organization",
    "name": "serdarakyol",
    "logo": {
      "@type": "ImageObject",
      "url": "https://site.com/uploads/logo/logo_5e9ecf5b8ca1f.png"
	  
    }
  },
 "url": "https://site.com/",
   "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "<?php echo $og_url; ?>"
  },
 "datePublished": "<?php echo formatted_date($post->created_at); ?>",
 "dateCreated": "<?php echo formatted_date($post->created_at); ?>",
 "dateModified": "<?php echo formatted_date($post->created_at); ?>",
 "description": "<?php echo xss_clean($post->summary); ?>",
 "articleBody": "<?php echo xss_clean($description); ?>"
 }
</script>

 

 

You may also like...

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir


Fatal error: Uncaught Error: Call to undefined method Ressio_HtmlOptimizer_Dom_Element::addChild() in /home/altiltoy/siteler/serdarakyol.com/wp-content/plugins/psn-pagespeed-ninja/ress/classes/htmloptimizer/dom.php:182 Stack trace: #0 /home/altiltoy/siteler/serdarakyol.com/wp-content/plugins/psn-pagespeed-ninja/ress/classes/plugin/widgets/widgets.php(66): Ressio_HtmlOptimizer_Dom->appendScriptDeclaration('!function(e,t,n...', Array, Object(Ressio_HtmlOptimizer_Dom_Element)) #1 /home/altiltoy/siteler/serdarakyol.com/wp-content/plugins/psn-pagespeed-ninja/ress/classes/plugin/widgets/widgets.php(151): Ressio_Plugin_Widgets->injectJsLoader(Object(Ressio_HtmlOptimizer_Dom), Object(Ressio_HtmlOptimizer_Dom_Element)) #2 /home/altiltoy/siteler/serdarakyol.com/wp-content/plugins/psn-pagespeed-ninja/ress/classes/dispatcher.php(117): Ressio_Plugin_Widgets->onHtmlIterateTagSCRIPTBefore(Object(Ressio_Event), Object(Ressio_HtmlOptimizer_Dom), Object(Ressio_HtmlOptimizer_Dom_Element)) #3 /home/altiltoy/siteler/serdarakyol.com/wp-content in /home/altiltoy/siteler/serdarakyol.com/wp-content/plugins/psn-pagespeed-ninja/ress/classes/htmloptimizer/dom.php on line 182