Title: Some help with codes
Last modified: August 31, 2016

---

# Some help with codes

 *  Resolved [webkocken](https://wordpress.org/support/users/webkocken/)
 * (@webkocken)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/some-help-with-codes/)
 * Hi!
 * I would need some help with what php-codes to put in the boldmarked fields so
   that I can implement the ratings in my themes rich snippets because when I use
   both the plugin and the theme I use I get to markups for recipe.
 * <div itemprop=”aggregateRating” itemscope itemtype=”[http://schema.org/AggregateRating&#8221](http://schema.org/AggregateRating&#8221);
   id=”**post-ratings-1108**” class=”post-ratings” data-nonce=”**fdf40a9d67**“>
 * <strong itemprop=”ratingCount”>**68**
 * <strong itemprop=”ratingValue” content=”**4.6**“>**4,16**
 * I hope you understand what I´m looking for or can point me to what file I can
   search for it.
 * [https://wordpress.org/plugins/wp-postratings/](https://wordpress.org/plugins/wp-postratings/)

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

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/some-help-with-codes/#post-6998522)
 * Here are the lines. [https://github.com/lesterchan/wp-postratings/blob/master/wp-postratings.php#L1144-L1196](https://github.com/lesterchan/wp-postratings/blob/master/wp-postratings.php#L1144-L1196)
 *  Thread Starter [webkocken](https://wordpress.org/support/users/webkocken/)
 * (@webkocken)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/some-help-with-codes/#post-6998526)
 * Great, thanks!
 *  Thread Starter [webkocken](https://wordpress.org/support/users/webkocken/)
 * (@webkocken)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/some-help-with-codes/#post-6998818)
 * Sorry for opening this again, but I really need some help.
 * If I want to get the code for aggregaterating to work in my php-file, how should
   I write it then?
 * For instance, this is the code for the date:
 * `<dd itemprop="datePublished" content="<?php echo get_the_date('Y-m-d'); ?>" 
   class="post-date updated"><?php echo get_the_date(); ?></dd>`

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

The topic ‘Some help with codes’ is closed to new replies.

 * ![](https://ps.w.org/wp-postratings/assets/icon.svg?rev=978014)
 * [WP-PostRatings](https://wordpress.org/plugins/wp-postratings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-postratings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-postratings/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-postratings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-postratings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-postratings/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [webkocken](https://wordpress.org/support/users/webkocken/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/some-help-with-codes/#post-6998818)
 * Status: resolved