Selamlar, schema işaretlemesi için konu içindeki bazı bilgilerin schema json kodları içerisine çekilmesi gerekiyor. Bunun için php bilgisi olan birine ihtiyaç duyduk.
Detaylar; {
"@context": "https://schema.org",
"@type": "QAPage",
"mainEntity": {
"@type": "Question",
"name": "$thread[prefix_plain_html] $thread[title]<if condition='$pagenumber>1'> - <phrase 1='$pagenumber'>$vbphrase[page_x]</phrase></if>",
"text": "$post[message]",
"answerCount": $thread[replycount],
"upvoteCount": 26,
"dateCreated": "$thread[startdate]",
"author": {
"@type": "Person",
"name": "$thread[postusername]"
}
,
"acceptedAnswer": {
"@type": "Answer",
"text": "1 pound (lb) is equal to 16 ounces (oz).",
"dateCreated": "2016-11-02T21:11Z",
"upvoteCount": 1337,
"url": "https://example.com/question1#acceptedAnswer",
"author": {
"@type": "Person",
"name": "$thread[postusername]"
}
}
,
"suggestedAnswer": [
{
"@type": "Answer",
"text": "Are you looking for ounces or fluid ounces? If you are looking for fluid ounces there are 15.34 fluid ounces in a pound of water.",
"dateCreated": "2016-11-02T21:11Z",
"upvoteCount": 42,
"url": "https://example.com/question1#suggestedAnswer1",
"author": {
"@type": "Person",
"name": "AnotherUser"
}
}
]
}
}Bu şekilde schema json kodları mevcut. Bazı bilgileri çekebiliyoruz ama cevap verilerini çekemiyoruz. Plugin üzerinden yapılması gerekiyor. Tarih bilgisi çekmek için kullandığımız iki satırlık bir örnek plugin var. Benzer şekilde ilgili alanların verileri konu içerisinden çekilmesi gerekiyor. İlgilenenler özel mesaj yolu ile ulaşabilir daha detaylı konuşabiliriz.