• Resolved edsouza

    (@edsouza)


    The plugin is showing the voting on the pages, but nothing is marked in HTML, so nothing is displayed in Google’s Structured Data Testing Tool.

    What could be happening?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Milan Petrovic

    (@gdragon)

    Can you send me the URL you were testing to check it out?

    Thread Starter edsouza

    (@edsouza)

    This is my site: goo.gl/R6GKzM

    Plugin Author Milan Petrovic

    (@gdragon)

    I tried to vote on your website, and it plugin displays that vote is saved, but when page loads again, it says no votes. It is either some customization you did, or you have cache issues.

    Can you send me exact URL you tested in the Testing Tool?

    Thread Starter edsouza

    (@edsouza)

    In none is appearing, I just tested this: goo.gl/mKFDVa

    I am using the shortcode:

    [gdrts_stars_rating_auto template="default"
    style_size=30 style_type="font" style_font_name="star"]

    I also created a rule to display the voting only on category pages.

    I deactivated the cache plugin, and even then the tags do not appear in HTML.

    • This reply was modified 7 years, 11 months ago by edsouza.
    Plugin Author Milan Petrovic

    (@gdragon)

    The rich snippet is not present because the page is not single post/page (condition is_singular). This is a customized category archive so the snippet is not added. Google rule for rich snippets is that they can’t be used on archive pages, only on single articles (post or page in WordPress).

    But, there is an override option in the plugin settings to remove this limitation, and you can use that (plugin Settings -> Rich Snippets -> Snippet on singular pages only), and disable it.

    Thread Starter edsouza

    (@edsouza)

    Still does not work.

    Disable “Snippet on singular pages only” and it still does not work.

    I also tested the pages of posts and pages, and also does not work, no information is added in HTML.

    I changed the theme to Twenty Sixteen, but the problem persists. On the page it counts, but does not add the markup in HTML.

    What else can we try?

    • This reply was modified 7 years, 11 months ago by edsouza.
    Plugin Author Milan Petrovic

    (@gdragon)

    I am not sure why is not working. I will run some tests on my end and let you know.

    Plugin Author Milan Petrovic

    (@gdragon)

    This is now fixed in 2.0.1.

    Thread Starter edsouza

    (@edsouza)

    Version 2.0.1 is working. Excellent work Milan Petrovic.

    Just a note: On the category page being evaluated, the URL being displayed in the “itemprop =” url “parameter is the first post in the listing, not the category URL.

    Congratulations on the great work with this plugin.

    Thank you.

    Plugin Author Milan Petrovic

    (@gdragon)

    URL is from the item, not the current page. You can use filters to modify the rich snippet before the print, and modify URL there. For JSON-LD version of the snippet, filter is: ‘gdrts_rich_snippets_jsonld_snippet’, and for microdata, filter is: ‘gdrts_rich_snippets_microdata_snippet’.

    Milan

    Thread Starter edsouza

    (@edsouza)

    If not ask too much, can you tell me how to use these filters? I’ve never worked with them and I do not know how.
    ??

    • This reply was modified 7 years, 11 months ago by edsouza.
    Plugin Author Milan Petrovic

    (@gdragon)

    This is basic WordPress/PHP, you should try some tutorials on filters in WordPress Codex. Filters and actions are meant for developers.

    Thread Starter edsouza

    (@edsouza)

    I’ll research how to do it.

    Thank you very much, Milan.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Nothing appears in the Structured Data Testing Tool’ is closed to new replies.