Support » Plugin: Rate my Post - WP Post Rating » JSON-LD error: “,” or “}” missing

  • Resolved ageexplorer

    (@ageexplorer)


    Great plugin!!! Thx a lot. Its easy and simple.
    structured data testing tool displays an uncategorized error.

    Many thanks for help!!
    Gundolf

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Blaz K.

    (@blazk)

    Hi @ageexplorer,

    thanks for reporting the issue and sharing the link to the structured data testing tool. You have html in the title which causes the issue:

    
    "name": "<div class="b normal"><p style="text-transform:none;">Altenpflege und Klinik</p></div>"
    

    I don’t think that this is so common but I will add a fix in the next version 🙂

    Regards,
    Blaz

    • This reply was modified 6 months ago by Blaz K..
    ageexplorer

    (@ageexplorer)

    Thank you so much, Blaz!!!
    Keep up the great work!!!
    Gundolf

    Plugin Author Blaz K.

    (@blazk)

    @ageexplorer, a fix for this has been added in version 2.8.1 🙂

    Regards,
    Blaz

    Blaz

    What was the cause of this error? How did you fix it?

    Plugin Author Blaz K.

    (@blazk)

    @livingeasylivecom the tags have to be stripped before the title is printed out:

    
    "name": "<?php echo wp_strip_all_tags( get_the_title() ); ?>"
    

    Regards,
    Blaz

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.