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>
Yorumlar