Blaz K.
Forum Replies Created
-
Forum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Spanish (Spain) translationHi Javier,
I added the missing strings in version 2.9.2. Thanks again for pointing them out for me! I haven’t yet had a time to deal with the external libraries but I will soon 🙂
Regards,
Blaz@rp4rusty, added in version 2.9.2. See example below:
add_filter( 'rmp_mail_address', 'my_change_rmp_email' ); function my_change_rmp_email( $email ) { return 'test@test.com'; }Regards,
BlazForum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Supporting schema markuphere is a CSS snippet which will fix your problem 🙂
.post-content ul#rmp-stars li:before { content: ''; }Blaz
Forum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Google Rich Results ChangedOkay, the update is out and now you can select one of the supported structured data types in the settings. Two filters are available for structured data:
1. rmp_schema_type
This filter enables you to set a different type if certain conditions are met. Let’s say you have a custom post type of recipe and you want to have the recipe structured data only in these posts. You can do that as shown in the example below:
function my_schema( $schemaType ) { if( is_singular( 'recipe' ) ) { return 'Recipe'; } return $schemaType; } add_filter( 'rmp_schema_type', 'my_schema' );2. rmp_structured_data
This filter allows you to change the complete output of structured data. The plugin doesn’t support Event, HowTo and SoftwareApplication structured data because these require additional information that can’t be generic. For example, Event requires start time as well as location. The example below shows how to implement the Event structured data type.
function my_structured_data( $structuredData ) { $voteCount = rmp_get_vote_count(); $rating = rmp_get_avg_rating(); $img = get_the_post_thumbnail_url(); $name = get_the_title(); $structuredData = ' <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Event", "aggregateRating": { "@type": "AggregateRating", "bestRating": "5", "ratingCount": "' . $voteCount . '", "ratingValue": "' . $rating . '" }, "image": "' . $img . '", "name": "' . $name . '", "location": { "@type": "MusicVenue", "name": "Chicago Symphony Center", "address": "220 S. Michigan Ave, Chicago, Illinois, USA" }, "startDate": "2014-05-23T20:00" } </script> '; return $structuredData; } add_filter( 'rmp_structured_data', 'my_structured_data' );As you see, some data above is hardcoded and it’s on you to make it dynamic 🙂 My approach would be to use ACF plugin and then retrieve the data from custom fields. Nevertheless, there are many ways to do this. In the future I might make it possible to add Event, HowTo and SoftwareApplication via shortcode, depending on the requests I get here.
Regards,
Blaz- This reply was modified 6 years, 8 months ago by Blaz K..
Forum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Google Rich Results ChangedUpdate:
I’m working on version 2.9.2 in which this issue will be addressed. In the options you will be able to choose between the following markups:
Product
Book
Course
CreativeWorkSeason
CreativeWorkSeries
Episode
Game
LocalBusiness
MediaObject
Movie
MusicPlaylist
MusicRecording
Organization
RecipeImplementation of the Event, HowTo and SoftwareApplication will be possible via the filter but will require some knowledge of PHP.
Blaz
Thank you @desertsailors! 🙂
Forum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Rating stars in one line@nathaliegb1, if you share the link to your website with me I can give you a CSS snippet 🙂
Regards,
BlazHi @pavelrepin,
thanks for pointing out the additional social media platforms. I wrote that down and I’ll add support for them in one of the future updates.
As for the display of stars, I have to see the website to give a CSS snippet 🙂
Regards,
BlazForum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Google Rich Results Changed@kjowens and others,
for product markup you can change in plugins\rate-my-post\public\partials\rmp-star-rating-widget.php on line 95
"@type": "CreativeWork",to
"@type": "product",I checked and the data is valid. So, I take back what I wrote above 🙂 – some “recommended” fields are missing but this shouldn’t be a problem. However, we can’t know until somebody tests it 🙂
I would push an update out, but obviously this markup doesn’t fit all. So I need to build settings and this will take me a bit more time. Please be patient and modify the structured data as needed until I have the update 🙂 also help each other and share tips 🙂
Regards,
BlazForum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Google Rich Results Changed@dieter93, please let me know how experimenting goes. Many of these markups require extra information. For example, “how to” requires steps etc. I’m being cautious with the update because the last thing I want is for users to get manual penalties. I’ll do more testing and then decide how to proceed.
Blaz
@adamfartassi, that also doesn’t work anymore. Check the Google guidelines which have changed. The link to them is in the topic I mentioned above. I’m opened to ideas from users.
Regards,
BlazThis is the fifth topic with same issue on this forum. Please see/use https://wordpress.org/support/topic/google-rich-results-changed/
I won’t be replying to new topics of the same issue.
Regards,
BlazForum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Google Rich Results ChangedI suggest playing a bit with the plugin’s structured data in public/partials – find the rating widget template. I would appreciate if users give recommendations what structured data would be the most generic or best fit for their websites.
Obviously one structured data fits all is not applicable anymore. @santacruze product was also my first idea. But it requires additional data such as brand, product name etc. Hence it would only work via shortcodes.
Maybe the best way would be to allow users to select which structured data to include (of the supported ones). But this requires a quite big update and I’ll need some time to develop it.
Regards,
BlazHi @rp4rusty,
I’ll add a filter there in the next update. I hoped to push an update this week but I’m not sure I’ll manage. Next week at latest 🙂
Regards,
Blaz