Viewing 10 replies - 1 through 10 (of 10 total)
  • I’m not the author, but yes, “commentCount” is a property which can be defined for articles:

    https://schema.org/Article
    defines
    https://schema.org/commentCount

    There should be two support forum threads for this, as these are two issues: 1.) Pages 2.) commentcount

    Thread Starter Richard Vencu

    (@rvencu)

    Thanks. Yes, i did a lot of tweaking for this plugin, actually I made it about 40 times larger, included markup for CollectionPages (for blog page and archives), organization (front page), person (for author pages) even Offer for specific pages. Very curious how will this data be consumed by Google. Having the organization defined it was easy to attach it as Publisher property or WorksFor in case of Person, etc.

    For Article there are some important properties such as About and Mentions. I created special taxonomies relevant for my field and marked up all articles accordingly.

    Of course it became a custom work since it is too complicated to write a generic plugin with all this markup options.

    If someone is curios here is a sample result to check https://developers.google.com/structured-data/testing-tool/?url=http://www.dentfix.ro/servicii/ortodontie/corectarea-malpozitiei-dentare/gutiera-ortodontica-nocturna/

    What do you think of forking and start working on the new code?
    See also my other issues I opened for this plugin.
    I’d love to contribute!

    Thread Starter Richard Vencu

    (@rvencu)

    Let me clean and comment the code a bit and I will publish it as an example. I did none of the technical tricks (such as not echo the script code), still echoing it but you can take over this one.

    I use git, let do the work in there. Will post the link here later on

    Thread Starter Richard Vencu

    (@rvencu)

    So please check https://github.com/rvencu/json-ld-plugin-for-WordPress/ where I put the main file.

    The project is private so perhaps there is an access request procedure, let me know if I can do anything manually to give you access.

    Update: unauthenticated the link throw 404 so I suppose I need your git username to add you manually.

    that would be “bmhm”. Thanks.

    Thread Starter Richard Vencu

    (@rvencu)

    So, my coding skills are what they are. I hope you can do something nicer out of it 🙂

    I think I can solve the threads I posted til the end of january.

    I created a fork based on yours and the original one. Please file an issue to re-add medical data (or whatever you need).

    https://github.com/bmhm/wp-jsonld

    I also created a request to have my version included as a new plugin on wordpress.org, called simply “wp-jsonld”, because it will also work for authors, posts and others some day.

    Thank you for your help!

    PS: Please don’t delete your git repo yet.

    Thread Starter Richard Vencu

    (@rvencu)

    OK, no problem

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘make it for pages as well’ is closed to new replies.