Adding page numbers to posts (5 posts)

  1. John Lyman
    Posted 4 years ago #

    I've looked at various forums to address adding page numbers to posts and not pages and they don't seem to resolve my issue. When I try Alt+Shift+P WordPress doesn't want to add page numbers to longer posts.

    Could someone provide the code or plugin that would easily allow for me to break longer articles up into several pages?

    Thanks in advance for any help

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Try adding <!--nextpage--> where you want the page break to occur.

  3. John Lyman
    Posted 4 years ago #

    Thanks for the code but when I insert it into a post draft and preview it I don't get the buttons to click on the next page and the document quits where I inserted the code.

    Any suggestions?

  4. John Lyman
    Posted 4 years ago #

    Supposedly I can add this to my site's custom css stylesheet, would it work to make sure pagenation works?

    [CSS code moderated - post a link to your site or use the pastebin]

  5. vjpo
    Posted 4 years ago #

    To show page-links of paginated posts single.php and page.php of your theme must have wp_link_pages function in it's loop right after the_content(). Check if it is in the code.
    As an example, you can see the loop-page.php of TwentyTen theme.

Topic Closed

This topic has been closed to new replies.

About this Topic