stars rating plugin

#899928
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    We apologize for the issue you are facing. While we don’t have a specific recommendation for a user rating plugin that integrates directly with Rank Math, you can use any user rating plugin that supports Schema Markup. This will help ensure that the star ratings are recognized by search engines and displayed correctly in the search results.

    For recipes, you might want to look for plugins that allow you to add Recipe Schema, as this will enhance your SEO and visibility in search results.

    If you have further questions or need assistance with a specific plugin, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.

    Thank you for raising your concern!

    But I would like to connect it to your Schema Markup that I use on the website. Do you have instructions?

    Hello,

    Thank you for contacting Rank Math support.

    You can use the https://mythemeshop.com/plugins/wordpress-review/ plugin to collect user reviews. You can also use any review plugin that saves the review data in the database and modify & use the following following filter to add the reviews to our plugin’s Schema:

    add_filter('rank_math/snippet/rich_snippet_product_entity',	function ($entity) {
    	$score = get_post_meta(get_the_ID(), 'users_rating', true); // Replace with your rating post meta.
    	$count = get_post_meta(get_the_ID(), 'users_rating_count', true); // Replace with your rating count post meta.
    	$entity['aggregateRating'] = array(
    		'@type'       => 'aggregateRating',
    		'ratingValue' => $score,
    		'ratingCount' => $count,
    	);
    	return $entity;
    });

    Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘stars rating plugin’ is closed to new replies.