If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #22959

    How do I put page breaks in the Display theme pages? I read other posts on other themes, but nothing seems to work. How and where do I put them and do I need to do anything else to get them to work?



    What do you mean by page breaks and where exactly do you want to use them?

    Please send us a screenshot of what you are trying to accomplish.




    Well.. Here is the page:


    If you look down the page you will see it is rather long, I would like to be able to put a page break right before it says “Our Experience:” so there would be a link to a next page or something like that.. I really did not want to create another complete page unless that is what I have to do in order to do what I was looking to do..



    First, edit page.php then find this code

    <?php edit_post_link('Edit', '', ''); ?>

    Replace that with

    <?php edit_post_link('Edit', '', ''); ?>
    <?php wp_link_pages(); ?>

    When you’re done, edit the Trial Services page, switch to text mode. Before “Our Experience” insert “<!–nextpage–>”. Done. You will have a pagination below.




    Worked great!.. Now, how would I style it like at the bottom of the display support page? If you do not mind.. or you can just point me in the right direction an I will try to get it done.. Oh, not this will work every time I use it correct??

    Thanks again…



    Please replace the code <?php wp_link_pages(); ?>

    with this

    <?php wp_link_pages('before=<div id="page-links">&after=</div>'); ?>

    Now, you can style it using the selector #page-links.

    Edit css > choose the style that you are currently using. (style1.css, style2.css or style3.css). Place something like this at the bottom.

    #page-links {

    #page-links a {




    I tried to code it, but I think there is a <div></div> missing or something…



    Use this instead

    <?php $args = array(
    'before' => '<div id="page-links">Pages:',
    'after' => '</div>',
    'next_or_number' => 'number',
    'pagelink' => '%',
    'echo' => 1

    wp_link_pages( $args );

    What do you mean by missing div? You can style it using #page-links.




    That works nice… Thanks.. Don’t worry about the styling right now, it is functional and that is what counts.. I will deal with that at another time.. thanks for the code…

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Page Breaks in Display Theme’ is closed to new replies.