get_row( "SELECT sum(count) views, id FROM `wp_statistics_pages` where id not in ( 0,1, $currentPost_id) and type = 'post' group BY `wp_statistics_pages`.`id` order by views desc limit 1" ); $postMostViewed = get_post( $most->id ); $less = $wpdb->get_row( "SELECT sum(count) views, id FROM `wp_statistics_pages` where id not in ( 0,1, $currentPost_id) and type = 'post' group BY `wp_statistics_pages`.`id` order by views asc limit 1" ); if ($less) { $postLessViewed = get_post( $less->id ); } $rand = $wpdb->get_row( "SELECT * FROM `wp_posts` where post_status = 'publish' and post_type = 'post' and id not in ( $postMostViewed->ID, $postLessViewed->ID, $currentPost_id ) order by rand() limit 1" ); if ($rand) { $postRandViewed = get_post( $rand->ID ); } ?>

Zobacz również

ID, 'thumbnail', array( 'class' => 'alignleft' ) ); ?>

ID, 'thumbnail', array( 'class' => 'alignleft' ) ); ?>

ID, 'thumbnail', array( 'class' => 'alignleft' ) ); ?>