hardgain
Member
Posted 2 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!
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.
hardgain
Member
Posted 2 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...
Glad you got it! Now, please use the dropdown at top right to mark this topic 'Resolved'.