if (get_post_meta($post->ID, 'cp_total_count', true))
$ad_views = number_format(get_post_meta($post->ID, 'cp_total_count', true));
else
$ad_views = '-';
// added daily counter
if (get_post_meta($post->ID, 'cp_daily_count', true))
$ad_views_daily = number_format(get_post_meta($post->ID, 'cp_daily_count', true));
else
$ad_views_daily = '-';
<td class="text-center"><?php echo $ad_views; ?></td>
<td class="text-center"><?php echo $ad_views; ?> (<?php _e( 'Total views', 'appthemes' ); ?>)<br /><?php echo $ad_views_daily; ?> (<?php _e( 'Today', 'appthemes' ); ?>)</td>
There are currently 1 users browsing this thread. (0 members and 1 guests)