what’s meaning of it when submit a theme?

OK, I figured it out. It took a bit of digging and many bad suggestions. The solution is actually quite simple. Just replace this in your theme files: Where you have this: <div class=”comments”> <?php comments_template(); ?> </div> Replace it with this: <div class=”comments”> <?php if ( comments_open() ) : ?><br /><p><br /><?php comments_template(); ?><br … Read more

How to add paging to query

Rather than using next_posts_link and previous_posts_link, try paginate_links. It lets you specify the current page and total page count. For example: echo paginate_links( array( ‘base’ => add_query_arg( ‘cpage’, ‘%#%’ ), ‘format’ => ”, ‘prev_text’ => __(‘&laquo;’), ‘next_text’ => __(‘&raquo;’), ‘total’ => ceil($total / $items_per_page), ‘current’ => $page ));