Blaz K.
Forum Replies Created
-
Forum: Reviews
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] very good pluginThanks for your review and translations @claudebehr! Are you interested in becoming an editor for french locale for the plugin? This way you could approve your translations yourself. I can make a request for you. Let me know 🙂
Regards,
BlazForum: Reviews
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] very goodThanks for your review! 🙂
Can you send me the example of this markup in Google Structured Data testing tool? Is it error-free? The guidelines are pretty clear and they don’t state that rich snippets can’t be displayed for blog articles. They just require that the blog article falls into one of the categories listed in the guidelines (howto, recipe, book, course etc.). Hence, the plugin was adjusted accordingly and allows you to select the type property. There is also a filter “rmp_structured_data” which allows complete modification of structured data.
I’m planning to release version 3 by the end of January on Github for testing.
Regards,
BlazHi there,
in September Google has limited the pool of schema types that can potentially trigger review rich results to: Product, Book, Course, CreativeWorkSeason, CreativeWorkSeries, Episode, Game, LocalBusiness, MediaObject, Movie, MusicPlaylist, MusicRecording, Organization, Recipe, HowTo, SoftwareApplication and Event. You can read more about this here: https://webmasters.googleblog.com/2019/09/making-review-rich-results-more-helpful.html
So, according to the guidelines rich snippets can’t be displayed for posts and pages unless the page/post is about product, book, course or any other category listed above. The plugin supports most of these categories.
If you have different (and credible) information on the topic, share it with me 🙂
Regards,
BlazHi @jorgert,
I don’t completely understand your question. The plugin is primarily intended for visitors to rate posts on a website. Nevertheless, in the security settings you can limit ratings to only logged-in users. Besides from that, it’s not possible to limit ratings.
Regards,
Blaz- This reply was modified 6 years, 4 months ago by Blaz K..
you do have to echo do_shortcode function as described in the WordPress documentation: https://developer.wordpress.org/reference/functions/do_shortcode/. Having multiple content filters shouldn’t be a problem. Nevertheless, you can always append echo do_shortcode(“[ratemypost]”); to an existing filter.
Regards,
BlazForum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] “none” type is unknownedIt depends what is the article about 🙂 since mid-September Google does not support rich snippets for articles unless they belong to one of the categories listed here: https://webmasters.googleblog.com/2019/09/making-review-rich-results-more-helpful.html?m=1
Merry Christmas and happy new year!
Blaz
Thanks for your review! 🙂
Forum: Reviews
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] AmazingThank you! 🙂
Forum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] “none” type is unknownedHi @alexsoyer,
you need to choose the “Type of structured data for rich snippets” in the settings.
Regards,
BlazForum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Rate my PostHi @kardunvs,
check out the documentation here: https://blazzdev.com/documentation/rate-my-post-documentation/
These are functions/methods of your interest:
rmp_get_avg_rating( $postID )
rmp_get_vote_count( $postID )
Rate_My_Post_Public_Helper::get_visual_rating()Regards,
BlazHi Maarten,
the problem is that the current production version of Rate my Post doesn’t save average rating as post meta because it calculates it on the go. I see that the Schema PRO plugin has a filter for fields so you might be able to insert average rating with rmp_get_avg_rating( $postID ) function. Their support should be able to help you with this.
Alternatively, I can send you a build of Rate my Post version 3 which does save average rating to post meta. However, version 3 is still in development and thus you would have to test it thoroughly. Let me know what you decide.
Blaz
- This reply was modified 6 years, 4 months ago by Blaz K..
Hi @geckoroutes,
the Schema Pro structured data will interfere with Rate my Post structured data as both plugins use the same data types. So, the best thing to do would be to either disable Schema Pro structured data or Rate my Post structured data in the settings. Rate my Post’s structured data is focused on aggregate ratings (votes) and at the moment doesn’t support optional fields such as price. Nevertheless, there is a filter (rmp_structured_data) which allows you to modify the structured data to your needs. More about this in the documentation: https://blazzdev.com/documentation/rate-my-post-documentation/
Blaz
Try this:
if( rmp_get_avg_rating() > 2 && rmp_get_avg_rating() < 5 ) { echo do_shortcode('[ratemypost]'); }Regards,
Blazyou were close 🙂 So, if you want to list ratings for all posts, you first need to make a loop: https://developer.wordpress.org/themes/basics/the-loop/
Something like this should work:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); the_title( '<h2>', '</h2>' ); echo Rate_My_Post_Public_Helper::get_visual_rating(); endwhile; else: _e( 'Sorry, no posts matched your criteria.', 'textdomain' ); endif; ?>Note that the stars will be without style and if post has no ratings the method will return false. This will be handled differently in version 3 which is being developed and will be released in early 2020.
Blaz