Hi,
I am working on a WP Theme where I have created a custom page template with detailed "divitis" structure. I want to split this particular page into two or more pages using the <!--nextpage--> Quicktag.
The code structure is as shown below:
<?php
/*
Template Name: My Template
*/
?>
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<p>This part contains divitis image gallery of page 1</p>
<!--nextpage-->
<p>This is an image gallery for page 2</p>
<?php wp_link_pages(); ?>
<?php endwhile;?>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
i.e. I am not using the_content(). I am editing the content in a text editor using the structure, as shown above.
Now the issue is that the <!--nextpage--> is not working. It just outputs a blank. But if I use this Quicktag using the text-area in WordPress GUI, it works fine.
Kindly help me in understing how can I use <!--nextpage--> in a text editor, and not in WP Text-area.
Thanks in advance.