query( array( 'post__in' => $sticky, 'caller_get_posts' => 1 ) ); $res= display_regular_posts($wpq); $displayed_posts += $res['count']; $displayed_ids = $displayed_ids + $res['ids']; } if ($options[$shortname.'_show_latest_post_before_columns']=='yes') { $wpq->query("paged=$page&posts_per_page=1&caller_get_posts=1"); $res= display_regular_posts($wpq, $displayed_ids); $displayed_posts += $res['count']; $displayed_ids = $displayed_ids + $res['ids']; } $cat = $options[$shortname.'_show_category_in_column']; if ($cat <= 0) $cat = null; if ($options[$shortname.'_post_list_column_count'] > 1) { if ($displayed_ids) { echo '

'; } else { echo '
'; } $show_posts = $options[$shortname.'_post_list_column_count'] * $options[$shortname.'_post_list_column_rows']; $wpq->query(array('post__not_in' => $displayed_ids,'cat'=>$cat,'posts_per_page'=>$show_posts)); $res = display_column_posts($wpq, $displayed_ids); $displayed_posts += $res['count']; if ($res['count'] < $show_posts) echo '
'; $displayed_ids = $displayed_ids + $res['ids']; } $show_posts = $posts_per_page - $displayed_posts; display_regular_posts(null,$displayed_ids); } else display_regular_posts(); ?>