Arul
Forum Replies Created
-
Forum: Hacks
In reply to: Sort comments by custom field (dropdown)Did you get the code done ?
Forum: Plugins
In reply to: [Custom Post Type UI] Beta testers WILL BE neededWilling to help out in beta testing. Let me know when it is released
Forum: Plugins
In reply to: [Mage Reviews] V 1.0.7 is brokenFound 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
In reply to: [Mage Reviews] V 1.0.7 is brokenI 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
In reply to: [Mage Reviews] V 1.0.7 is brokenWhile using content filter dont use shortcodes as it is very inefficient way to do stuff
https://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
In reply to: [Mage Reviews] Some suggestionsI don’t have vast knowledge about schema.org myself. I guess this tool is handy https://microformats.org/code/hreview/creator
Forum: Plugins
In reply to: [Mage Reviews] Some suggestionsI did read up on schema org and this should be the aggregate format you need to use to display them properly
<div itemscope itemtype=”https://schema.org/Review”>
<div itemprop=”reviewRating” itemscope itemtype=”https://schema.org/Rating”><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
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
In reply to: Static home page not showing 3.1i have the same issue what should I do ?