Wordpress编辑页面自动添加关闭短代码标记

时间:2016-12-21 17:59:36

标签: wordpress

我在帖子中有以下内容

 This is content
 [divider space="123" anything="123"]
 [another]this is content[/another]
 more content
 [divider]
 some more text or shortcodes

如果你在上面的短代码中注意到[divider]短代码没有结束标记,它可以有属性,所以那些应该保持不变但是在WP Admin中编辑帖子时它应该自动添加结束短代码。编辑帖子时所需的内容应为:

 This is content
 [divider space="123" anything="123"][/divider]
 [another]this is content[/another]
 more content
 [divider][/divider]
 some more text or shortcodes

0 个答案:

没有答案