How To Add Next Page Break Links In WordPress Post Editor

Code

Here’s the code you can add to your theme which will add the next page button to your editor.

add_filter('mce_buttons','wysiwyg_editor');
function wysiwyg_editor($mce_buttons) {
$pos = array_search('wp_more',$mce_buttons,true);
if ($pos !== false) {
$tmp_buttons = array_slice($mce_buttons, 0, $pos+1);
$tmp_buttons[] = 'wp_page';
$mce_buttons = array_merge($tmp_buttons, array_slice($mce_buttons, $pos+1));
}
return $mce_buttons;
}

Thanks to Martin Aleksander for this code.

This code will add the Insert Next Page button to your WYSIWYG editor.

Insert Page Break Button

No Code

You don’t even need to add the code to your theme files if you don’t want the Next Page button added to your editor.

Next Page tag

You can simply insert the page link tag into your HTML editor and Bobs your Uncle!

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.