<?php } ?> </div> <?php $post_count++; } ?> </div> <?php ikit_one_render_pager($wp_query, 'MORE', ikit_get_page_permalink_by_slug(IKIT_SLUG_PAGE_NEWS), true); wp_reset_query(); ?> </div> <div class="box-close"></div> <div class="box-close"></div> <?php } ?> <!-- News end -->
<?php // Get the posts $paged = get_query_var('paged') ? get_query_var('paged') : 1; $args = array(); $args['posts_per_page'] = IKIT_ONE_NEWS_POSTS_PER_PAGE; $args['paged'] = $paged; $args['order'] = 'DESC'; $args['post_type'] = array('post', IKIT_POST_TYPE_IKIT_POST_EXTERNAL); $args['orderby'] = 'meta_value_num'; $args['meta_key'] = IKIT_CUSTOM_FIELD_GENERIC_ORDERING_DISPLAY_PRIORITY; query_posts($args); while (have_posts()) { the_post(); include 'news-item.php'; } ?> </div> <?php ikit_one_render_pager($wp_query); wp_reset_query(); ?> </div> <div class="box-close"></div> <?php get_sidebar(); get_footer();
?> </a></div> </td> </tr> </table> </div> <?php $post_count++; } ?> </div> <?php ikit_one_render_pager($wp_query, 'NEXT', null, false, 'PREVIOUS', null, false); wp_reset_query(); ?> </div> <div class="box-close"></div> <?php get_sidebar(); get_footer();