ben şuanda js yardımı ile bu verilerimi kolayca zenginleştirebiliyorum zaten googlenin önemsediği asıl kısımlarda bunlar
wordpress siteniz için örnek kodlar aşağıdaki gibidir
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Article",
"name" : "<?php the_title() ?>",
"author" : {
"@type" : "Person",
"name" : "<?php the_author(', '); ?>"
},
"datePublished" : "<?php the_time('l, F jS, Y') ?>",
"image" : "<?php
$args = array(
'post_type' => 'attachment',
'numberposts' => -1,
'post_status' => null,
'post_parent' => $post->ID
);
$attachments = get_posts( $args );
if ( $attachments ) {
foreach ( $attachments as $attachment ) {
echo wp_get_attachment_url( $attachment->ID, 'full' );
}
}
?>",
"articleBody" : "<?php the_content(); ?>",
"url" : "<?php the_permalink() ?>",
"publisher" : {
"@type" : "Organization",
"name" : "<?php the_author(', '); ?>"
}
}
</script>diğer siteler içinde wp fonksiyonların karşılığını php yada aspye dökerek kullanabilirsinizbu vermiş olduğum kodları içeriği yayınladığınız sayfanın her hangi bir yerine ekleyebilirsiniz.
