Support » How-To and Troubleshooting » [Resolved] Cant get the <!–nextpage–> code to work

[Resolved] Cant get the <!–nextpage–> code to work

  • scolly108


    Hi there
    On my site the articles I am posting will be long articles/posts which I am trying to get to appear on multiple pages so you can click either next page, 1,2,3 etc.. or << >> and I cant get any of the code to work.

    I have tried putting the <!–nextpage–> in but it cuts off the page at the right point but doesnt give you the option to move to the next page to continue reading,

    I have searched the internet and wordpress forums and I have found another code <?php wp_link_pages(); ?> which needs to be somewhere within the template files of the theme to activate the <!–nextpage–> option but I have no idea where to put it.. and when I have tried it still doesnt work. (I am using a woo theme)

    Please can somebody help me out with this or suggest an alternative way to create a page break within the same post rather than a new post.

Viewing 1 replies (of 1 total)
  • make sure in your single.php file (under your current template directory) isnt missing the following code:
    <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

    will usually follow this:
    <?php the_content(); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Cant get the <!–nextpage–> code to work’ is closed to new replies.