つまらない話題ですが、カスタムフィールドで数値計算をするサンプルです。カスタムフィールドの値は数値であることが保証されているものとします。 合計 やっているのは足し算のみです。 ■ ■ page-sum.php ■ <?php $s_x = $s_y = 0; $my_posts = get_posts('post_type=post&numberposts=-1'); foreach($my_posts as $p) { $cf = get_post_custom( $p->ID ); $s_x += $cf['x'][0]; $s_y += $cf['y'][0]; } echo "xの合計:$s_x<br />"; echo "yの合計:$s_y<br />"; // もしくは $s_x = $s_y = 0; $my_posts = get_posts('post_type=pos