In Wordpress we can split a post with <!--nextpage-->
, if we put it in the code version of the post-editor. This is working for me. BUT what is, if I want to hardcode this in the themes loop file? How can I get this to work?
Assume I have something like this in my loop file:
<?php the_excerpt(); ?>
<?php the_content(); ?>
<?php wp_link_pages(foobarbaz); ?>
Obviously the following solution won't work:
<?php the_excerpt(); ?>
<!--nextpage-->
<?php the_content(); ?>
<?php wp_link_pages(foobarbaz); ?>
I have no clue where I could find the right php function that is executed when <!--nextpage-->
gets parsed in the code editor.
The only solution I can think of is creating a new post with just <!--nextpage-->
in it and somehow try to hardcode this specific post inside the loop file. But there has to be a much better and cleaner way of doing it...
Any suggestions?