Tag Archives: DirectoryPress Site Statisctics

Show DirectoryPress / PremiumPress Site Statisctics

We always want to impress our visitors by showing our achievements, hence this piece of trick would help you do that. go to /wp-content/themes/directorypress/PPT/_config.php Enter the following code at the bottom… ———————————————- function statistics_countposts($type=publish) { $count_posts = wp_count_posts(); echo $count_posts->$type; } function statistics_countusers() { $result = count_users(); echo $result[‘total_users’]; } function statistics_lastpostdate($type=english) { global $wpdb; […]