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.
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?
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… 🙂
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.. */ }