收藏 Collections from websites

网上找了很多,都是拷贝的一份错的,说要修改functions.php文件,根本不行,没用。本人捉摸了很久,终于解决。

找到wp-includes/default-filters.php,用你熟悉的编辑器,如文本编辑器或者dreamweaver打开,找到下面一段:

// Format text area for display.
foreach ( array( 'term_description' ) as $filter ) {
add_filter( $filter, 'wptexturize' );
add_filter( $filter, 'convert_chars' );
add_filter( $filter, 'wpautop' );
add_filter( $filter, 'shortcode_unautop');
}

在里面加上一行:
add_filter('the_content', 'make_clickable');

注意这里的'需要改一下,左右是一样的,不是‘’,参考上下文的格式,然后保存即可。
亲测可行。url, email文本都自动变成可点击链接。包括你以前发布的所有博客文章里的都自动改变。

猜您喜欢

This entry was posted on Tuesday, December 2nd, 2014 at 12:00 am and is filed under 信息工具. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.




Add Comment

Leave a Reply

Comment Rules

  • Example Rule 1
  • Comment rule 2
  • 3. Bold Rule
  • more...

Copyright ©2017 收藏.
%d bloggers like this: