Blaz K.
Forum Replies Created
-
Hi there,
there is no such feature at the moment but I guess you could extract the data from rmp_avg_rating post meta and then calculate the average rating for the author. I would approach this by using the get_posts function and then looping through all posts by author (something like this: https://wordpress.stackexchange.com/questions/36135/how-can-i-list-posts-by-author) and calculating the average rating of author’s posts.
Regards,
BlazHi @venturemob,
nonce is a very common word in programming and stands for “number used once”. More resources about this:
https://codex.wordpress.org/WordPress_Nonces
https://en.wikipedia.org/wiki/Cryptographic_nonceI did not know that it’s an offensive word in British slang. I’ll rename the error msg with the next update. In the meantime you can rename it yourself with translations plugin such as Loco translate. If you are getting such an error msg, also check out under Troubleshooting in the documentation to see how to fix the issue.
Regards,
BlazHi @ronnie55,
I have a snippet for such an issue in the documentation under troubleshooting. If it doesn’t work, I’ll need to see the website so I can give you CSS to fix the issue.
Blaz
Forum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Stars have disappearedHi there,
So, if I understand correctly, you recently switched from www to non www? My guess is that this switch was not done properly as all resources on your website are still retrieved from www. Hence, the error with the font:
Access to font at ‘https://yourwebsite.com/wp-content/plugins/rate-my-post/public/css/fonts/ratemypost.woff?9e18pt’ from origin ‘https://www.yourwebsite.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
Maybe your hosting will be able to help you with this?
Regards,
Blaz- This reply was modified 5 years, 11 months ago by Blaz K..
Hi,
this is on the to-do list and is coming in one of the future versions. Multiple structured data types on a single page are valid. As far as I know this shouldn’t be a problem. Nevertheless, you can simply use rmp_structured_data filter if you want to remove structured data from categories etc.
Blaz
Forum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Few suggestionsHi @t_ed,
thanks for your suggestions. Some were already on the roadmap and I added the others 🙂
Regards,
BlazI think it would be better to fix the issue on the other side – by retrieving all posts regardless of the rmp_avg_rating meta key. Nevertheless, you could also try to do it like it’s explained in the topic you shared above.
So I guess in this case you would do something like this:
function set_default_rating($post_ID){ add_post_meta($post_ID, 'rmp_vote_count', 1, true); add_post_meta($post_ID, 'rmp_rating_val_sum', 5, true); add_post_meta($post_ID, 'rmp_avg_rating', 5, true); } add_action('wp_insert_post','set_default_rating');Now all new posts should have a default rating of 5. Note that I haven’t tested this so test it before deploying.
Regards,
BlazIt only migrates posts that have ratings. So, I guess you only had 33 posts rated in WP-PostRatings.
Regards,
BlazForum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Full AMP compatibilityHeart signs are not available in AMP. The AMP widget is minimalistic and not all settings apply to it. That’s because AMP pages are limited JavaScript-wise.
Blaz
Hi @joseehilton147,
how do you retrieve the posts? I think the problem is that posts which have no ratings are not retrieved, probably because they have no meta key for the rating.
Blaz
Forum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Duplicated AggregateRatingHi @rafalor,
I also couldn’t find any problem with duplicated AggregateRating. But it’s true what @ctrlaltdelete says – the average rating is not rounded. I’m not sure about V 2.10.3 but since version 3 the ratings are definitely rounded.
Blaz
Hi @ctrlaltdelete,
I guess you don’t have wp_postratings installed? Rate my Post first checks if wp_postratings is installed and only then it allows migration. So there are two options:
1. Install wp_postratings
2. Add the following to functions.php to trick Rate my Post into believing that wp_postratings is installed 🙂function the_ratings() { return false; }Let me know how it goes.
Regards,
BlazHi @weareinspired,
that is correct, exclude rating/result widget does not have impact on the display of ratings on archive pages – it only works within posts, pages and CPT. I added this feature on the roadmap.
In the meantime you can put all posts which shouldn’t display ratings in a separate category and utilize the rmp_archive_results filter to hide ratings on archive pages only for these posts.
See example:
function blazzdev_exclude_category( $content ) { if ( is_category( 'test-category' ) ) { // adjust the slug return false; } else { return $content; } } add_filter( 'rmp_archive_results', 'blazzdev_exclude_category' );This will hide ratings in category with slug test-category.
Regards,
Blaz- This reply was modified 5 years, 11 months ago by Blaz K..
Hi Anna,
thank you very much for sharing this with me. I added the steps in the documentation.
Regards,
BlazHi @parsamrz,
are you sure you have the right IDs? On your front page the ID is 4336 from what I see.
Regards,
Blaz