displaying content of multiple paginated pages
-
I have a lengthy Page which utilizes pagination:
<p>some content on the first subpage</p> <!--nextpage--> <p>some content on the second subpage</p> <!--nextpage--> <p>some content on the third subpage</p>
Can I create a template or archive page that displays more than one sub-page at a time?
<div id="container"> WHILE (SOME SORT OF PAGED MAGIC HAPPENS) <div class="content"> the_content(); </div> ENDWHILE wp_link_pages(); or similar nav links </div>
Resulting in HTML like this:
<div id="container"> <div class="content"> <p>some content on the first subpage</p> </div> <div class="content"> <p>some content on the second subpage</p> </div> <div class="content"> <p>some content on the third subpage</p> </div> <div class="navLinks">Next</div> </div>
So why split it into multiple subpages if I’m just going to display it on a single page?
I’d like to display one subpage div at a time, with a jQuery transition to display the next subpage. Similar to a Featured Posts section found on many homepages, except rather than displaying multiple posts in the same category, I’d like to display multiple paginated subpages from the same Page.
Impossible? Should I take a different approach entirely?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘displaying content of multiple paginated pages’ is closed to new replies.