[resolved] Creating Paginated Posts (4 posts)

  1. hardgain
    Posted 6 years ago #

    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!

  2. vtxyzzy
    Posted 6 years ago #

    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.

  3. hardgain
    Posted 6 years ago #

    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...

  4. vtxyzzy
    Posted 6 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic