WordPress.org

Ready to get started?Download WordPress

Forums

displaying content of multiple paginated pages (4 posts)

  1. shawncampbell
    Member
    Posted 4 years ago #

    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?

  2. shawncampbell
    Member
    Posted 4 years ago #

    Clarification: when referring to a "subpage," I do not mean a child Page (created with the Pages hierarchy); I mean a subsequent page within a single Page (created with the <!--nextpage--> QuickTag).

  3. web00132
    Member
    Posted 4 years ago #

    Hi! I need the exact same thing, did you solve it Shawn?

  4. web00132
    Member
    Posted 4 years ago #

    Hi! I need the exact same thing, did you solve it Shawn?

Topic Closed

This topic has been closed to new replies.

About this Topic