Title: Arul's Replies | WordPress.org

---

# Arul

  [  ](https://wordpress.org/support/users/arulpr/)

 *   [Profile](https://wordpress.org/support/users/arulpr/)
 *   [Topics Started](https://wordpress.org/support/users/arulpr/topics/)
 *   [Replies Created](https://wordpress.org/support/users/arulpr/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/arulpr/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/arulpr/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/arulpr/engagements/)
 *   [Favorites](https://wordpress.org/support/users/arulpr/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Sort comments by custom field (dropdown)](https://wordpress.org/support/topic/sort-comments-by-custom-field-dropdown/)
 *  [Arul](https://wordpress.org/support/users/arulpr/)
 * (@arulpr)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/sort-comments-by-custom-field-dropdown/#post-3452572)
 * Did you get the code done ?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type UI] Beta testers WILL BE needed](https://wordpress.org/support/topic/beta-testers-will-be-needed/)
 *  [Arul](https://wordpress.org/support/users/arulpr/)
 * (@arulpr)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/beta-testers-will-be-needed/#post-4471370)
 * Willing to help out in beta testing. Let me know when it is released
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mage Reviews] V 1.0.7 is broken](https://wordpress.org/support/topic/v-107-is-broken/)
 *  Thread Starter [Arul](https://wordpress.org/support/users/arulpr/)
 * (@arulpr)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/v-107-is-broken/#post-4527028)
 * Found another small bug in function mage_update_rating
 * instead of using comment approved as string
 * $comments = get_comments(array(‘post_id’ => $parent, ‘comment_approved’=>1));
 *  Use the inbuilt function
    get_approved_comments($parent)
 * so it is checked against a boolen. Much safer when comment statuses changes.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mage Reviews] V 1.0.7 is broken](https://wordpress.org/support/topic/v-107-is-broken/)
 *  Thread Starter [Arul](https://wordpress.org/support/users/arulpr/)
 * (@arulpr)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/v-107-is-broken/#post-4527003)
 * I installed it on fresh install and it went through. I think it might have clashed
   with other plugins I am testing right now.
 * Anyway I have another suggestion here.
 * When calculating average you forgot to round off averages, so right now it will
   have ratings like 2.66666 or 1.33333
 * In mage_reviews_average function I changed the following code
 * `$value = round($value/$divident, 2);`
 * I also suggest that you change comment meta and post meta keys into something
   a bit more unique
 * **_mage_rating **is according to wordpress developers rule book.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mage Reviews] V 1.0.7 is broken](https://wordpress.org/support/topic/v-107-is-broken/)
 *  Thread Starter [Arul](https://wordpress.org/support/users/arulpr/)
 * (@arulpr)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/v-107-is-broken/#post-4526805)
 * While using content filter dont use shortcodes as it is very inefficient way 
   to do stuff
 * [http://kovshenin.com/2013/dont-do_shortcode/](http://kovshenin.com/2013/dont-do_shortcode/)
 * Just yse the following code and not the do_shortcode
 *     ```
       function mage_get_review_average() {
           return mage_reviews_average();
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mage Reviews] Some suggestions](https://wordpress.org/support/topic/some-suggestions-19/)
 *  Thread Starter [Arul](https://wordpress.org/support/users/arulpr/)
 * (@arulpr)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/some-suggestions-19/#post-4498573)
 * I don’t have vast knowledge about schema.org myself. I guess this tool is handy
   [http://microformats.org/code/hreview/creator](http://microformats.org/code/hreview/creator)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mage Reviews] Some suggestions](https://wordpress.org/support/topic/some-suggestions-19/)
 *  Thread Starter [Arul](https://wordpress.org/support/users/arulpr/)
 * (@arulpr)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/some-suggestions-19/#post-4498469)
 * I did read up on schema org and this should be the aggregate format you need 
   to use to display them properly
 * <div itemscope itemtype=”[http://schema.org/Review”&gt](http://schema.org/Review”&gt);
   
   <div itemprop=”reviewRating” itemscope itemtype=”[http://schema.org/Rating”&gt](http://schema.org/Rating”&gt);
 * <meta itemprop=”worstRating” content=”1″><span itemprop=”ratingValue”>o</span
   > / <span itemprop=”bestRating”>5</span> stars</div>
    </div>
 * Obviously need to replace Best rating and rating value with respective variables
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Page2cat: Category, Pages & Posts Shortcodes] Page To Category Assigning Issue](https://wordpress.org/support/topic/page-to-category-assigning-issue/)
 *  Thread Starter [Arul](https://wordpress.org/support/users/arulpr/)
 * (@arulpr)
 * [13 years ago](https://wordpress.org/support/topic/page-to-category-assigning-issue/#post-3921708)
 * I can make the assignment from the category list but not when I assign from the
   page editor. I hope that makes sense.
 *   Forum: [Alpha/Beta/RC](https://wordpress.org/support/forum/alphabeta/)
    In 
   reply to: [Static home page not showing 3.1](https://wordpress.org/support/topic/static-home-page-not-showing-31/)
 *  [Arul](https://wordpress.org/support/users/arulpr/)
 * (@arulpr)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/static-home-page-not-showing-31/page/2/#post-1795021)
 * i have the same issue what should I do ?

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