Return count for characters in the comment and perform action based on the length

By using a function to perform that: recent_comment_text_more($comment_content) that function would look like (in case you’re using PHP, part of your code looks from another language): function recent_comment_text_more($comment_content, $more_href) { if (strlen($comment_content) > 180) { $comment_content = substr($comment_content, 0, 177) . sprintf(‘<a href=”https://wordpress.stackexchange.com/questions/8656/%s”>… (more)</a>’, $more_href); } return $comment_content; } Good luck! Multibyte charset safe variant … Read more

“Rendering of admin template [path to template] failed”

Looks like an error related to the HeadSpace2 plugin, see. http://urbangiraffe.com/support/topic/rendering-of-admin-template-failed-2 http://urbangiraffe.com/support/topic/rendering-of-admin-template-failed-continued Perhaps the plugin has template support which you’ve enabled but not created the appropriate file for in the theme? I have no idea, i don’t use the plugin, just thinking out loud.. Hope that helps.

Add custom fields from different posts

<?php $totalprice_posts = get_posts(‘post_type=items&author=”.$thisauthorID.”&tag=’.$thispostID.’&numberposts=-1′); $totalprice_array = array(); foreach ($totalprice_posts as $post) { $productprice = get_post_meta($post->ID, “productprice”, true); $productquantity = get_post_meta($post->ID, “productquantity”, true); $totalproductprice = ($productprice * $productquantity); array_push($totalprice_array, $totalproductprice); } echo implode(‘,’, $totalprice_array); echo array_sum($totalprice_array); ?