Lack of interest Structured data unique for every thread page.

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

dutchbb

Well-known member
Google indexes every page as a separate page for some time now. Adjusting the DiscussionForumPosting structured data would be a good idea.

For example, i use the date of first post on a thread page for 'dateModified'. This has the possible advantage that google uses that date in search results (it already does it sometimes without structured data). And the more recent the date in search results, the higher the change somebody will click on it.

This is what i use on xf1. I also added some extra data suggested by google for 'Article' (DiscussionForumPosting is a part of that) so it could be used in search results.

Code:
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "DiscussionForumPosting",
  "headline": "{xen:jsescape $thread.title}",
  "description": "{xen:helper snippet, $firstPost.message, 200}",
  "articleSection": "{xen:jsescape $forum.title}",
  "datePublished": "{xen:datetime $thread.post_date, 'Y-m-d'}",
  "dateModified": "{xen:datetime $firstPost.post_date, 'Y-m-d'}",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "{xen:link 'canonical:threads', $thread, 'page={$page}'}"
  },
  "image": {
      "@type":"ImageObject",
      "url":"{xen:helper avatar, $firstPost.message, m, 0, 1}",
      "width": "96",
      "height": "96"
  },   
  "author": {
    "@type": "Person",
    "name": "{xen:jsescape $firstPost.username}"
  },
  "publisher":{
    "@type":"Organization",
    "name":"",
    "logo": {
      "@type":"ImageObject",
      "url":"logo",
      "width": "190",
      "height": "60"
       }
  }
}
</script>



 
Upvote 2
This suggestion has been closed. Votes are no longer accepted.
Top Bottom