
foreach ( $top_posts = stats_get_csv( 'postviews', "days=$options[top]$csv_args[top]" ) as $post ) $post_ids[] = $post['post_id'];
<?php foreach ( $top_posts as $post ) : if ( !get_post( $post['post_id'] ) ) continue; ?> <p><?php printf( $printf, '' . get_the_title( $post['post_id'] ) . '', // '' . $post['post_title'] . '', number_format_i18n( $post['views'] ) ); ?></p> <?php endforeach; ?>