/** * contructs a ul of the popular posts (technically, entries with higher views) */ public function popular_posts() { $posts = Posts::get(array( 'content_type' => 'entry', 'has:info' => 'views', 'orderby' => 'info_views_value DESC', 'limit' => 5 )); $out = "'; return $out; }