dudo
Forum Replies Created
-
Thank you so much!
Thanks to let me know!
Tomorrow I will release the new version (3.3.9) and it will have support for theme who don’t use the_content filter.
So it will just work, and you will be able to remove that code from the child theme.
Best,
DarioHello!
Can you please email me at support AT yetanotherstarsrating DOT com ? Thanks!
Best,
DarioA schema is generated if, and only if:
- A YASR shortcode (yasr_visitor_votes or yasr_overall_rating) exists on the page. That’s why it returns if you enable it on the title.
- There is at least one vote on one of these shortcodes.
This is by design. YASR is a rating plugin, and the schema must only return if YASR is enabled for a certain post. Otherwise, YASR doesn’t return or load anything.
Hello!
This is for sure the theme that is stripping out the HTML YASR adds near the title.
There is nothing you can do inside YASR, if you’ve code skills you can fix this by editing your theme (using a child theme) and allowing the HTML returned by YASR.
Best,
DarioThe function save_yasr_schema_additional_fields is too complex, you don’t need all that code.
Just use the one you find here https://pastebin.com/Wd7iEunF
Also, there is no need to use the echo, once data is saved with the function above, it YASR will print it.Hello, I’m not sure I understand the question, but as you have already guessed, the fields are just post meta grouped by the option name “yasr_schema_title” (for the title) and “yasr_schema_additional_fields” for all the other additional fields.
In PHP, you can save that data by simply using the “update_post_meta” function. However, without seeing the code, it’s hard to say what is wrong.
Best,
DarioSorry for the delay.
This is related to this issue https://www.ads-software.com/support/topic/please-add-json-structured-data-output-to-wp_head/
Seems like when is used a theme who use ACF, the filter the_content is not used.
You can add this code into your child theme. It should work later.
Let me know!
Best,
DarioHi!
Did you selected “no” to the question “Is this a review?” below the editor?
Are you using Advanced Custom Fields?Best,
DarioForum: Reviews
In reply to: [YASR - Yet Another Star Rating Plugin for WordPress] Excellent!Thanks!
Thank you so much!
Hello, just use the post_id parameter.
e.g. [yasr_visitor_votes postid=”XXXX”] where XXXX is the postid of the product you need.
Best,
DarioForum: Reviews
In reply to: [YASR - Yet Another Star Rating Plugin for WordPress] 5/5Thank you so much!
Hello!
No, because it has no sense to rate an archive page, instead of a single item.
E.g. I can insert a rate for a particular restaurant, but I can’t rate for the category “restaurants”
Best,
Dario