Views and comments count not shown in WP-admin Stats-Tab
-
Hello, on the Stats-Tab in WP-admin at the popular posts list the stats (views and comments count) are not shown. They should because of line 228 in views/admin.php for example:
<?php echo do_shortcode("[wpp range='all' post_type='".$this->user_settings['stats']['post_type']."' stats_comments=1 stats_views=1 order_by='".$this->user_settings['stats']['order_by']."' wpp_start='<ol>' wpp_end='</ol>' post_html='<li><a href=\"{url}\" target=\"_blank\" class=\"wpp-post-title\">{text_title}</a> <span class=\"post-stats\">{stats}</span></li>' limit=".$this->user_settings['stats']['limit']." freshness=" . $this->user_settings['stats']['freshness'] . "]"); ?>
I think it’s because of line 1927 in wordpress-popular-posts.php:
return apply_filters('wpp_post', $content, $p, $instance);
Before this line the $content variable contains all data but apply_filters returns different markup. The stats are removed and the excerpt is added. If I just return $content the output in the Stats-Tab is correct.Regards and thanx for your help!
Guido
- The topic ‘Views and comments count not shown in WP-admin Stats-Tab’ is closed to new replies.