Hello @dudo,
I am using YASR from some time, but I recently found out that there is an option to change the schema @type
. The whole “Rich snippet options” are new to me.
I know what does those mean and how the data there is used, so the settings are clear to me.
After your comment I decided to find a good example url for you and checked some posts. What I have found is that on some posts, the ld+json uses “BlogPost” type and on some the consifured “CreativeWorkSeries”. Then I looked into the database and found the following stored for the specific post into wp_postmeta
meta_key: yasr_overall_rating
meta_value: Other
It looked to me like there is a setting for every posts. I went into the post edit interface and I found it – a pannel “Yet Another Stars Rating”. In this pannel there is an option with name “Select ItemType”. It was clear to me that this post has specific configuration for its Rich Snippet type. The value of the select box showed “BlogPosting”, even though in the database the value is “Other”. I assume it is a fallback of the select
dom element, since there is no option “Other” and it selects the first option
in the select
tag.
I see two problems:
1. I do not remember ever configuring this option on a post level
2. A value in the database “Other” defaults to “BlogPosting” in this options select
I found in the wp_postmeta
a record for every post in the system containing this data
meta_key: yasr_overall_rating
meta_value: Other
Now I understand how YASR plugin stores its data – on global level, and on post level. I solved my problem by executing
UPDATE wp_postmeta SET meta_value = 'CreativeWorkSeries' WHERE wp_postmeta.meta_key = 'yasr_review_type' AND wp_postmeta.meta_value != 'CreativeWorkSeries'
and it worked. Now the ld+json uses “@type”:”CreativeWorkSeries”
All best
Svet