开发者 | cosmick |
---|---|
更新时间 | 2022年11月16日 19:19 |
捐献地址: | 去捐款 |
PHP版本: | 3.0.1 及以上 |
WordPress版本: | 4.5 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
<?php csr_get_overall_rating(); ?>
in your templates for getting aggregate rating.
Front End Rate Submission
Place <?php csr_add_rating(); ?>
in your templates or [csr-add-rating]
Shortcode in a page for Star rating Form.
To get Single Review Rate
If you need to get the rating for a particular review <?php echo csr_get_rating( $post_id ); ?>
. If in a loop $post_id
not needed.
To List All the Reviews - Front End
You may call http://yoursite.com/reviews
Once you are finished installing this plugin, you can log into your Google Webmaster Tools and use the data highlighter tool and view all the structured data that you markup on your site.
You can test your homepage after installation by using the structured data testing tool provided by google. https://developers.google.com/structured-data/testing-tool/ . You can test any page that shows reviews, or the page that is displaying the total star rating reviews.
That is the million dollar question. Google puts no timeline on how long it will take for your reviews and ratings to show in in SERPs. We have found that utilizing the structured data and highlighter tool provide in webmaster sites have shown up in results in 2-3 weeks, we have also seen it take months. Providing you use webmaster tools and the testing tool correctly that would be the best way to assure eventually your rating will show up in SERPs.
Yes you can use your own style sheet and override css settings
[csr-form]
to add review rating form.[csr-overall]
in your page/post for getting aggregate rating.[csr-add-rating]
to add review rating form.rateit
class to correct style.csr_get_rating( $post_id = null )
to get individual post rating.