How to add “Next Page”/ “Page Break” button in WordPress Editor

In WordPress we can separate post/pages using <!--nextpage-->. It’s hard to remember the tag, and you need to add it using “Text” editor, not visual editor. This is  how you can add “Next Page” or “Page Break” button in Visual Editor, Just like this:


It’s very simple, you can add this code in your theme/child theme functions.php or add it in a functionality plugin.

Add WordPress Next Page Button in Visual Editor

Add this code in your theme functions.php or in your functionality plugin. This feature is there, but somehow WordPress hide this.

 /* Add Next Page Button in First Row */
add_filter( 'mce_buttons', 'my_add_next_page_button', 1, 2 ); // 1st row

 * Add Next Page/Page Break Button
 * in WordPress Visual Editor
 * @link
function my_add_next_page_button( $buttons, $id ){

    /* only add this for content editor */
    if ( 'content' != $id )
        return $buttons;

    /* add next page after more tag button */
    array_splice( $buttons, 13, 0, 'wp_page' );

    return $buttons;

Keyboard Shortcut to Add Page Break

You can also use keyboard shortcut (Alt + Shift + P) to add Page Break.

Result Of WordPress Next Page Feature

As you can see, this post have two pages. Click “2” to view the second page.


  1. John

    Is it possible to limit the number of page breaks that could be used by a client (multi-site user?)!

    I would like to only permit 2 ‘breaks’: i.e 3 pages!

    would appreciate your help with this.


  2. Helen

    I have just added the code that you suggest in the function.php of my website.
    As it doesn’t work I delete it again (only this and nothing else!!!) and now….I can not even have access on my website!!!!!
    I try for admin log and a message like this appears: Warning: Cannot modify header information – headers already sent by ………
    Can you tell me what I should do now, after destroying my website????????

  3. sean

    Is the next page button only for posts/pages with a page break? Or can I use it to go between two separate pages on my site?


  4. Eric

    I’d like to add text to my “next” button in WordPress. For instance:

    “Next: Starting your car”

    Not sure of what the code is to make that happen. Thanks!


Leave a Reply

Your email address will not be published. Required fields are marked *