• Resolved fdmsaraiva

    (@fdmsaraiva)


    Hey there,

    I’d like to divide longer posts into separate pages.

    From what I gathered after a quick research, I should use <!––nextpage––> in the post content and ensure that the single.php template file is calling the <?php wp_link_pages(); ?> function inside the loop.

    I spread a few <!––nextpage––> in a test post and added said function to single.php, just before <?php sparkling_post_nav(); ?> but no cigar.

    What am I missing?

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Silkalns

    (@silkalns)

    This theme does support this functionality by default and all code added in theme files should be removed.

    Here is an example how post pagination works.

    You are right about <!--nextpage--> tag but use it in HTML editor not Visual editor when editing post/page. Visual editor will break down its functionality, so make sure to add it via HTML editor and HTML editor only.

    Once you will switch back to Visual editor you will see a nice “Page Break” message with dots on both side. That way you will know that you did it right.

    Thread Starter fdmsaraiva

    (@fdmsaraiva)

    Thanks for the reply Silkalns, everything is working great now. I must have been entering the tags in the visual editor as you said. Cheers.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding in-post pagination’ is closed to new replies.