Here’s the code I used; It worked somehwat, but was giving me the same view count for each topic post. I got the sense that buddypress topics all have the same post id… that’s probably why it was giving me the same count for all… any thoughts?
THIS WENT IN FUNCTIONS.PHP
function getPostViews($postID){
$count_key = ‘post_views_count’;
$count = get_post_meta($postID, $count_key, true);
if($count==”){
delete_post_meta($postID, $count_key);
add_post_meta($postID, $count_key, ‘0’);
return “0 View”;
}
return $count.’ Views’;
}