Home > Wordpress > 如何在wordpress编辑器中添加分页(nextpage)按钮

如何在wordpress编辑器中添加分页(nextpage)按钮

很简单,只是自己用,大家不要见笑。下面还有一个问题没有解决就是分页标签使用时feed和more标签会出问题。

一个是可是化编辑器,修改tinymce的配置文件,完整路径是
/wp-includes/js/tinymce/tiny_mce_config.php
在其中查找

$mce_buttons = apply_filters

大概在121行,在’wp_more’添加’wp_page’,注意格式要对应,逗号单引号要点好。效果如下图

换空间后,上传不了图片,明天补上。

另一个是html编辑器

查找配置文件,完整路径是
/wp-includes/js/quicktags.js
大概在134行-143行,将’/*’ ‘*/’两行注释号去掉
让包含在其中的代码生效。

edButtons[edButtons.length] =
new edButton(’ed_next’
,’page’
,’<!–nextpage–>’
,”
,’p’
,-1
);

Categories: Wordpress Tags: ,
  1. No comments yet.
  1. No trackbacks yet.
Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter. e.g, if ABC is one of commenter of this post, then write '@ABC '(exclude ') will automatically send your comment to ABC. Using '@all ' to notify all previous commenters. Be sure that the value of User should exactly match with commenter's name (case sensitive).