Support » Fixing WordPress » Next Page Previous Page

  • Resolved btbonline


    I am using the nextpage tag in the editor to split a page and when I do this the published pages display this:

    Pages: Previous pageNext page

    Not very pretty – I would be happy if I could work out how to put a space or two or a vertical separator between the text so it looked more like this:

    Previous page | Next page

    There must be a way to do this – I have found a few posts that hint at a solution but none that I could actually understand! Is there an easy way to achieve this? I tried a plugin which didn’t appear to do the job and also seems to have deleted the ‘next page’ button from the WYSWIG editor in WordPress as part of its feature set so ony clues on how to restore that would also be very welcome.

    Any advice appreciated


Viewing 3 replies - 1 through 3 (of 3 total)
  • Have you look at the various arguments (e.g. link_before & link_after) for wp_link_pages()?

    Thanks – I am sure the answer lies in there somewhere.

    The only link I have is on the html for the page concerned where it shows


    My problem is that I have no idea what additional html I need to add to this or how the nextpage function is controlled or where it is called from.

    If I knew where to look in the theme or what to edit I might be able to work out how to edit it to make the necessary changes.

    Update found some code in the Page Template of the theme which is as follows:

    <?php wp_link_pages(array(‘before’ => __(‘<p>Pages: ‘,’emerald_stretch’), ‘after’ => ‘</p>’, ‘next_or_number’ => __(‘number ‘,’emerald_stretch’))); ?>

    I assume this is what is producing the results I get now but no idea how to edit this to get the result I want. Because it’s wrapped up in a theme it’s a bit complicated and my WordPress coding level of understanding can best be described as basic.

    With a bit of trial and error I added a space before the ‘next’ of ‘next_or_number’ so it now looks like this:

    ‘ next_or_number’

    and that has changed the display to numeric references for each page which will do nicely.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Next Page Previous Page’ is closed to new replies.