'infaq-baru',
'meta_key' => 'field_6480b159a52f3',
'showposts' => 200000,
);
$count_infaq = get_posts($total_argument);
$kel = 0;
$mas = 0;
foreach ( $count_infaq as $post ) {
$status = get_post_meta($post->ID, 'field_6480b159a52f3', true);
if ( $status == 'keluar' ) {
$masuk = 0;
$keluar = get_post_meta($post->ID, 'jumlah', true);
}
if ( $status == 'masuk' ) {
$masuk = get_post_meta($post->ID, 'jumlah', true);
$keluar = 0;
}
$masu = str_replace(".","",$masuk);
$kelu = str_replace(".","",$keluar);
$kel += $kelu;
$mas += $masu;
$final = $mas-$kel;
setup_postdata($post);
}
?>
SALDO : Rp ,-
wp_reset_query();
?>