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); ?

Site DOES NOT LOAD after 3.1 update

I’ve had this same issue a couple of times now. Generally I’ve resolved it by manually downloading 3.1 and replacing the files in the directory. After the transfer is complete I was able to log in and update my database with the drop-down it presented.

Using theme options to change a border-radius value

Use standard echo or printf with additional parameters. e.g. if(isset($option[‘borderradius’]) && (!empty($option[‘borderradius’]))) { $borderradius=”.post { “; $borderradius .= ‘border-radius: ‘ . $option[‘borderradius’] . ‘px; ‘; $borderradius .= ‘-webkit-border-radius: ‘ . $option[‘borderradius’] . ‘px; ‘; $borderradius .= ‘-moz-border-radius: ‘ . $option[‘borderradius’] . ‘px; ‘; $borderradius .= ‘}’; echo $borderradius; } if(isset($option[‘borderradius’]) && (!empty($option[‘borderradius’]))) { printf(‘.post { … Read more