WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Creating Paginated Posts

[Resolved] Creating Paginated Posts

  • So I searched around and I found that you can insert “<!–nextpage–>” and create paginated posts in the default template.

    However, that does not work for my template. Is there some coding I need to add in order for that function to work?

    Thanks for helping!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Take a look in the default single.php file for the wp_link_pages function that provides the pagination. You will need similar coding in your template.

    The Codex documentation is here.

    Yes thank you vtxyzzy. For anyone else with this problem, here is the code to insert into the single.php file…

    <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

    Now if I can figure out how to insert different galleries into the paginated posts…

    Glad you got it! Now, please use the dropdown at top right to mark this topic ‘Resolved’.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Creating Paginated Posts’ is closed to new replies.