How to add Next Page button in wordpress visual composer using php code

How to add Next Page button in wordpress visual composer using php code

vijay / June 19, 2017

If you are using any of theme in your wordpress website, some users need next page button and they break their blog into more than a pages it increase pageviews of website.

How to insert a next page tag is very easy however some users are using plugin for this. but we would suggest to insert a code snip in your theme’s function.php file

add following code in the bottom of file .

* 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 https://shellcreeper.com/?p=889
*/
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;
}

.

Advantages of Crazy Tech India NGINX VPS

Build a super fast website on super fast web server, Nginx fast cgi caching,and pagespeed enabled. KVM Virtualized VPS dedicated resource gauranteed, Free monitoring. Starts INR 749/M

@ 2017 Crazy Tech India -Web Hosting company