蜗牛789
主机测评与优惠

WordPress通过Link Manager插件或修改主题functions.php文件找回“链接”功能

我们在玩转WordPress博客时,难免会要用到友情链接功能,但是WordPress在3.5以后的版本取消了这一功能,如果需要继续使用到WordPress的“链接”功能还是可以通过一些办法找回的。蜗牛789之前在WordPress九款必备插件 蜗牛个人珍藏版一般人不告诉他文章中介绍了一款名叫“Link Manager”的插件(点击这里下载插件),下载插件安装之后即可在后台的左侧看到如下图的“链接”功能了。

其实Link Manager这个插件很简单,里面只有一段代码,当然如果觉得这个是插件而不想用,可以试试下面这个方法,蜗牛是从@微魔部落看到的,在这里记录以下,方便日后用到。方法很简单,只需在你的WordPress主题中“functions.php”文件加入下面代码即可。下面这段代码其实和Link Manager插件里的代码是一样的。

add_filter( 'pre_option_link_manager_enabled', '__return_true' );

 

About 蜗牛

【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。





评论 3

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    博主可以发一些比较不错的模板吗

    amao6年前 (2018-03-22)回复
    • 没有过多关注这一块。

      蜗牛6年前 (2018-03-22)回复
  2. #2

    I believe what you published was actually very logical. However, what about this?
    suppose you wrote a catchier title? I am not saying your
    content is not solid., but suppose you added a headline to possibly grab a person’s attention? I mean WordPress通过Link Manager插件或修改主题functions.php文件找回“链接”功能-蜗牛789 is kinda vanilla.

    You ought to look at Yahoo’s home page and note how they write article titles to grab people to click.
    You might try adding a video or a related picture or
    two to grab people interested about everything’ve got to
    say. Just my opinion, it could make your posts a
    little bit more interesting.