WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Cant get the <!--nextpage--> code to work (2 posts)

  1. scolly108
    Member
    Posted 5 years ago #

    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.

  2. cbeck
    Member
    Posted 5 years ago #

    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(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic