$post_author にユーザーIDの変数を入れて利用します。
<?php $my_posts = get_posts("author=$post_author&numberposts=-1");
foreach($my_posts as $p) {$sum += get_post_meta($p->ID,'_liked',true);}
if($sum) { echo "$sum"; } ?>
$post_author にユーザーIDの変数を入れて利用します。
<?php $my_posts = get_posts("author=$post_author&numberposts=-1");
foreach($my_posts as $p) {$sum += get_post_meta($p->ID,'_liked',true);}
if($sum) { echo "$sum"; } ?>