我四处寻找一个好的WordPress插件。我知道这是一个购物问题,但是管理WordPress博客的一个重要方面,我惊讶地发现没有更标准的选择。具体来说,我需要一个插件来帮助:
你用什么?
发布于 2012-04-02 19:41:39
我可以想出两种方法来实现这一点,任何一种方法都同样有效。在解释的最后,我将介绍每一种方法的利弊。
[wpse47706_link]。您可能希望给它一个href属性。使用此链接在您的网站上,内部和外部的每个单一的链接。当您输出实际文本时,解析url (parse_url())并获取主机名。将此与站点url进行比较。如果匹配,则应用一组规则,否则应用另一组规则。如果你觉得有必要的话,你可以从仪表板上控制这些(这是设置API,一个完全不同的话题)。专业缺点
- does not afford individual control
- control over links from varying regions could become tricky, especially if you want to dynamically generate the settings areas 缺点
- directly modifying content (generally a bad idea)
- if you have lots of links, the UI could become difficult to manage
- I can imagine the load for the management page becoming rather heavy
- The changes could be overwritten by an author
- does not allow control over links not stored in the db (whereas, through `do_shortcode()`, the other method does)希望这给了您一些东西,consider...neither确实是一个很好的选择,但我不会说两者都是坏的。就我个人而言,我会使用短代码,但那就是我。
https://wordpress.stackexchange.com/questions/47706
复制相似问题