Title: Posts pagination
Last modified: August 19, 2016

---

# Posts pagination

 *  [JohnWinch](https://wordpress.org/support/users/johnwinch/)
 * (@johnwinch)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/posts-pagination-1/)
 * Hello,
 * I want to divide my post in several pages ([http://codex.wordpress.org/Styling_Page-Links](http://codex.wordpress.org/Styling_Page-Links))
   I’ve add the tag et I’ve put <!–nextpage–> in HTLM mod in the post I want to 
   be divised.
 * But I’ve got a problem, the template where my posts are divided is totally messed
   up. The right sidebar is now below the content.
 * Here’s the code from my single.php :
 *     ```
       <div class="entry">
           <!-- google_ad_section_start(weight=medium) -->
           <?php the_content(''); ?>
       	<!-- google_ad_section_end -->
       <?php wp_link_pages(); ?>
   
           <div class="clear"></div>
           <div class="postmeta"> <strong>Filed in:</strong>
             <?php the_category(',');?><br />
             <?php the_tags('<span>Tags:</span> ', ', ', ' '); ?>
             <?php edit_post_link('Edit', '[ ', ' ]'); ?>
           </div>
           <!--end: postmeta--->
         </div>
         <!--end: entry-->
         <div class="postnav">
           <div class="left">
             <?php previous_post_link('%link', '<div class="previouspost">&laquo; Previous</div>%title', TRUE);  ?>
           </div>
           <div class="right">
             <?php next_post_link('%link', '<div class="nextpost">Next &raquo;</div>%title', TRUE); ?>
           </div>
           <div class="clear"></div>
         </div>
         <!--end: postnav-->
         <?php comments_template(); ?>
         <?php endwhile; else: ?>
         <h2 title="h2title">
           <?php _e('Not Found', 'themejunkie'); ?>
         </h2>
         <div class="entry">
           <?php _e('Sorry, the post is not exists.', 'themejunkie'); ?>
         </div>
         <!--end: entry-->
         <?php endif; ?>
       </div>
       <!--end: content-->
       <?php include('post-sidebar.php'); ?>
       <?php get_footer(); ?>
       ```
   
 * Thanks you for your help.
 * Best regards

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/posts-pagination-1/#post-1650846)
 * the code looks normal.
 * a link to your site would help more.
 * have you any html tags in the post, that might get broken by the ‘nextpage’?
 * check the validation of the page: for instance with [http://validator.w3.org/](http://validator.w3.org/)
 * this might give you some indication of broken html tags.
 *  Thread Starter [JohnWinch](https://wordpress.org/support/users/johnwinch/)
 * (@johnwinch)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/posts-pagination-1/#post-1650848)
 * I don’t have a website, I’m working with Wamp. There’s no HTML in the nextpage
   tag, how can he break my current HTLM tags ?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Posts pagination’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [JohnWinch](https://wordpress.org/support/users/johnwinch/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/posts-pagination-1/#post-1650848)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
