Support » Fixing WordPress » Breaking one long post into several pages

  • Resolved mariacharmer

    (@mariacharmer)


    I have a magazine that re-prints or prints original writing and essay that are over 2500 words at times. This results in very long pages scrolling forever. I have read that there is a way to break really long posts into several pages but no info on how to do that. Does anyone know where in the post editor you can configure the end result to break at a certain word count then propagate the remaining on however many pages is need until the end of the post?

    Here is an example of one of the posts I’d like to break down into a few pages instread of having the reader scroll and scroll” http://flabmag.com/2010/02/28/luna-remembers-an-essay-by-paul-chaat-smith/

    Thank you in advance!

Viewing 9 replies - 1 through 9 (of 9 total)
  • http://codex.wordpress.org/Styling_Page-Links

    I believe you’re referring to the use of <!--nextpage--> .. which divides your content into pages.

    Everything you need to know should be covered in the above link.

    Thread Starter mariacharmer

    (@mariacharmer)

    THANK YOU!!!!!!!!!!!

    You’re welcome.. 🙂

    Thread Starter mariacharmer

    (@mariacharmer)

    Hmm, well I used the <!–nextpage–> shortcode and all it did was make <!–nextpage–> show up in the post where I placed it to break the text down into separate pages.

    Do I have to do anything to the php code for how posts or pages display?

    Thread Starter mariacharmer

    (@mariacharmer)

    uh duh…I was in visual editor instead of html. It’s still early for me. Need more coffee. 😉

    Switch to HTML and enter the code.

    I’m not sure if it’s still in 2.9, but there use to be a button for it in Visual mode, if not, use HTML mode and write it in.. 😉

    EDIT: Great, i see you got it… 🙂

    Thread Starter mariacharmer

    (@mariacharmer)

    Hahha well…the pages show up as if they are separated at the bottom of the first page where I inserted the break but the added a break one other place to create 3 total pages. When you click to go to the second page it merely defaults to the entire single post with no
    “Pages: 1 2 3” at the end of the post.

    Any suggestions as to what I may have done wrong?

    I placed the code right where I wanted the breaks to occur…

    UPDATE: nevermind…got it.

    But if I wanted to style out the links so that the reader understands they are on a certain page do I have to fool with the php or css code?
    Seems like you do but not sure how…do you know maybe?

    Sounds like your single view doesn’t contain the code for the links, ie. single.php for you theme.

    I imagine you have a listing of posts, which is handled by index.php or another similar template file, which you may have added the code in, however once you click to view the post, another file takes over and renders the page, most likely single.php, you will need to add the code into that file to..

    Does the above make enough sense? (I’m not always good at explaining things).

    For styling, yes you’ll need a little CSS…

    I’d personally suggest wrapping your pagelinks in an element with a specific class then changing up a couple of parameters so you’ll have a little more control over the styling..

    Here’s an example.

    PHP / HTML

    <div class="mylinks"><?php wp_link_pages( array( 'before' => '<span class="mylinks-head">Pages:</span><span>' , 'after' => '</span>' ); ?></div>

    CSS

    .mylinks { /* styling that applies to the containing element */ }
    .mylinks span { /* common styling for both span elements */ }
    .mylinks-head { /* styling specific to the title "Pages:" */ }
    .mylinks a { /* styling specific to all page links, minus current, which is not a link, ie. 2,3,4, etc.. */ }

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Breaking one long post into several pages’ is closed to new replies.