Display split-pages on one page (1 post)

  1. Teenage
    Posted 4 years ago #


    I was searching a way to use the '<!--nextpage-->' tag for spliting a page into parts (by the way I use the useful "NextPage Buttons" plug-in).

    I did some search without finding a solution, so I built one myself, here's my solution, please feel free to correct or improve it :

    if ( have_posts() )  {
      while ( have_posts() ) {
        //$post->post_content could be use but no content filtering will  be applied, breaking a lot of things
        foreach ($pages as $nb => $section) {
          echo apply_filters('the_content',$section);

    PS : some front-end plug-ins will not work properly : "front-end-editor"

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by Teenage
  • This topic is not a support question
  • WordPress version: 3.2.1