幻灯二

WordPress编辑器添加分页按钮的方法

将以下代码添加到您的当前主题的 functions.php 文件:

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;

您可能还会对下面的文章感兴趣:

内容页广告位一