functions.php

<?php function render_stats($post_id) { $args = array( 'days'=>-1, 'limit'=>-1, 'post_id'=>$post_id ); $result = stats_get_csv('postviews', $args); $views = $result[0]['views']; return number_format_i18n($views); }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.