J
J
jozess2015-12-19 12:37:32
WordPress
jozess, 2015-12-19 12:37:32

wp-postratings how to remove duplicate snippets when this option is enabled?

Installed the wp-postratings plugin. In the settings I set "Show Google snippets".
If you display the rating under the heading and that's it, then everything is fine. The schema markup tags are rendered in one instance.
But if you display similar news under the article, and additionally display a rating (stars) for them, then the schema is duplicated due to the cycle, for Google it turns out to be a mess.
I asked the plugin developer a question, he said that the problem is in the cycles. Further silent. https://wordpress.org/support/topic/google-snippet...
Tell me how to display stars without markup duplicates. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2016-10-11
@prolisk

Yes, cycles are the problem. They are repeated. It is necessary to study how similar news is displayed under articles. Apparently, they are also given a snippet with a rating. Alternatively, remove the auto-output and insert the rating code manually only in the content output on the main/categories/search/tags (in short, everywhere except the plugin).
read:
wp-kama.ru/function/query_posts (and be sure to
wp-kama.ru/function/query_posts#vazhno-ne-ispolzuj...
wp-kama.ru/function/get_posts
wp-kama.ru/function/wp_query
as well as the plugin code itself for displaying similar posts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question