WP-PostURL

 

[ 中文 ]

[ Description ]

 

This plugin allows you to insert a user specific text at the beginning and/or ending of all your post. The text can be a copyright declaration,
advertisement codes, etc. HTML codes are allowed.
You can select which pages (home/single/feed/category/tag/archive page) to display the specific text. You also can decide which posts display the text.

It accepts following macros in user specific text:

  • %site_url% – the URI of your site
  • %site_name% – the name of your site
  • %post_url% – the URI of the post where the text is displayed
  • %post_title% – the title of the post where the text is displayed

If the header text is not empty, it will be inserted to the head of your post; otherwise no head text will be inserted.

If the footer text is not empty, it will be inserted to the foot of your post; otherwise no footer text will be inserted.

You can choose which pages to display the header text and/or footer text. It includes:

  • Blog Home – the header/footer text will be displayed on blog home
  • Page – the header/footer text will be displayed on pages
  • Category – the header/footer text will be displayed on category
  • Tag – the header/footer text will be displayed on tags
  • Archive – the header/footer text will be displayed on archives
  • Single – the header/footer text will be displayed on single
  • Feed – the header/footer text will be displayed in feed

When you add a new post, you can decide whether or not to add the header text and/or footer text to this post. You do this by selecting “Add Post URL?” option in the editor page. This option is saved as a Custom Field, named “posturl_add_url”.

For posts without this Custom Field (i.e., the existed posts before you use WP-PostURL plugin), you can define the default behavior. If you select “By Default, Add Text to Post”, then all posts without this Custom Field will be added the header text and/or footer text; otherwise those posts will not be added the header text and/or footer text.

If you don’t want to help promote WP-PostURL plugin, you can uncheck this checkbox. The credit of WP-PostURL will not be displayed.

I want to thinks Lester “GaMerZ” Chan, the author of WP-PageNavi. Most codes of this plugin are derived from his WP-PageNavi plugin.

I also want to thanks QingFeng, he implement the first version of post url control in his post (zh_CN).

 

[ Installation ]

 

Goto WordPress.org to download WP-PostURL.

  1. Upload whole wp-posturl directory to the /wp-content/plugins/ directory;
  2. Activate the plugin through the ‘Plugins’ menu in WordPress;
  3. Goto “Setting –> Add Post URL” page to define your user specific text and other options. The default setting is suitable for most of the usage;
  4. When you new a post, you can change “Add Post URL?” option in the editor to decide whehter or not adding the header/footer text for this post.

You can completely uninstall WP-PostURL plugin. It will remove all the option settings created by this plugin, and deactive this plugin at the same time.

 

[ Screenshot ]

 

Post Example When WP-PostURL Works

Post Example When WP-PostURL Works


WP-PostURL Option Page (Part 1)

WP-PostURL Option Page (Part 1)


WP-PostURL Option Page (Part 2)

WP-PostURL Option Page (Part 2)


Add Post URL Option When New/Edit Post

Add Post URL Option When New/Edit Post

[ English ]

 

[ 插件描述 ]

 

本插件允许你在所有文章的开头和结尾处插入一段自定义的文字。这段文字可以是你的版权声明,也可以是广告,或者其它文字。你可以在指定页面中显示这段文字。也可以指定哪些文章显示或不显示这段文字。

安装完插件后,你可以自由编辑你的用户自定义字符串。自定义字符串允许使用HTML语句,请参考插件提供的缺省字符串。另外,你还可以在自定义字符串中使用下面的变量:

  • %site_url% – 站点的URL链接
  • %site_name% – 站点的名字
  • %post_url% – 显示这段内容的文章的URL链接
  • %post_title% – 显示这段内容的文章的标题

如果”header文本”不为空,那么这段文字将被插入到文章的开头;否则不在文章开头处插入。

如果”Footer文本”不为空,那么这段文字将被插入到文章的结尾;否则不在文章结尾处插入文字。

你可以选择在哪些页面中显示你自己定义的文字,这些页面可以是:

  • 博客首页 – 你的自定义文字会在博客首页中显示
  • Page页面 – 你的自定义文字会在类型为”Page”的文章中显示
  • 分类页面 – 你的自定义文字会在分类页面中显示
  • 标签页面 – 你的自定义文字会在标签页面中显示
  • 归档页面 – 你的自定义文字会在归档页面中显示
  • 单篇文章 – 你的自定义文字会在单篇文章中显示
  • Feed – 你的自定义文字会在所输出的Feed中显示

在你新建或编辑文章时,你可以决定这篇文章是否显示你自定义的文字。这可以通过编辑页面中的“添加文章链接?”选项来控制。此选项将为你的文章增加一个名为“posturl_add_url”自定义字段。

对于那些没有这个自定义字段的文章(这些文章可能是在你使用WP-PostURL插件前发表的),你可以定义缺省是否为这些文章显示你自定义的文字。如果你选择了“缺省为文章添加链接”,那么将会为这些文章显示你自定义的文字;反之,则缺省不显示。如果某些文章和此缺省定义不符,你需要重新编辑这些文章,设置其“添加文章链接?”选项,来选择是否为该文章显示这段文字。

如果你不想帮助推广WP-PostURL插件,你可以不选择这一项,这样就不会显示WP-PostURL插件的信息了。

使用中还有什么疑问,请在此页留言。

在此,我要感谢Lester “GaMerZ” ChanWP-PageNavi的作者。本插件的大部分代码都源自于他的WP-PageNavi。这就是开源的好处,你不用从头开始实现你的作品。

我也要感谢晴枫,他在他的文章中实现了文章控制选项的一个简易版本,尽管我没有采用他的代码,但还是要感谢他的努力。在版本2.0.1中,WP-PostURL也兼容了晴枫的修改。

 

[ 安装方法 ]

 

WordPress.org上下载WP-PostURL插件。

  1. 上传整个wp-posturl目录到/wp-content/plugins/目录
  2. 到WordPress后台管理页面中激活插件,插件的名字是Add Post URL
  3. 设置-->添加文章链接页对插件进行配置。缺省配置已经可以满足大多数需求。
  4. 在发表或编辑文章时,通过更改“添加文章链接?”选项,控制此文章是否显示自定义的文字。

如果你想完全卸载本插件,也需要在设置-->添加文章链接选择卸载,这会完全删除WP-PostURL插件所添加的配置选项,并自动停用此插件。

 


[ 屏幕抓图 ]

86条评论 添加评论

  1. 2009/03/14 01:18 | #1

    Works great, thank you

  2. 2009/03/15 02:36 | #2

    [...] plugin allows you to insert a user specific text at the beginning/ending of all your post… …..read more Download Plugin! Plugin Owner: Easwy Yang Homepage: Visit Plugin’s Website Version 1.0 | [...]

  3. 2009/03/16 20:06 | #3

    [...] 作者的Add Post URL插件页面 [...]

  4. 2009/03/16 23:36 | #4

    好软件
    如果能研究下,让其能够插入到文章中间就更牛x,更好对付无良转载了

  5. 2009/03/17 09:51 | #5

    @流星
    一般情况下,不建议在文章中间插入版权信息,因为会使用户体验不好。
    另外,如何在文章中间插入也是个问题。
    如果完全由插件自动插入,有可能插入到语句中间,文章变得难读。
    如果由作者在文章中使用特殊字符来插入版权信息倒是可以,比如,在准备插入版权信息的地方,加上%wp-posturl-copyright%。不过在输出feed时,也需要处理这个特殊标记。
    我先调查一下有这种需求的人多不多,如果很多人需要,就把它加进来。

  6. 2009/03/19 09:33 | #6

    [...] 作者的Add Post URL插件页面 [...]

  7. 2009/03/22 02:29 | #7

    不错谢谢,不过我觉得要实现这个功能,这个插件大小150KB是不是有点大了?

  8. 2009/03/22 11:39 | #8

    @小人物大坏蛋
    包里包括了屏幕抓图,这个比较大,实际的插件很小的

  9. 2009/04/06 03:24 | #9

    不错,加油!

  10. 2009/04/16 12:52 | #10

    [...] 3.Add Post URL   添加链接与版权声明插件. [...]

  11. 2009/05/08 21:10 | #11

    Hi this plug-in is great. Thank you very much for making it available to all bloggers.

    One suggestion, it would be most useful to have two blocks of text to be inserted. Use case is that the first block being inserted in the beginning, e.g. bio of author; and the copyright and contact at the end.

  12. 2009/05/15 23:53 | #12

    这个插件很实用,谢谢你,这样主题就不用改来改去了

  13. 2009/05/24 00:47 | #13

    感谢你的插件,呵呵。。

    不过你的英语部分一个词错了,你说感谢的时候用了”Thinks”,应该是“Thanks”。。。呵呵。。

  14. 2009/05/28 16:02 | #14

    nice plug-in ,thanks

  15. 2009/06/16 00:28 | #15

    [...] Add Post URL 是一款Easwy Yang开发的软件,允许你在文章的最开始或者最后加入一些自定义信息,最主要是一些日志的版权信息。 [...]

  16. 2009/06/25 15:35 | #16

    [...] 1.0 | 作者为 Easwy Yang | 访问插件主页        在文章底部添加一个 [...]

  17. 2009/07/06 00:22 | #17

    Great plug-in! It would be helpful to include the same url in the “main index” template of WP, not just in the “single post.” Is there an easy way to do this with your plug-in?

    Thanks,

    Chuck

  18. 2009/07/07 09:41 | #18

    @Chuck G
    Hi Chuck,

    You can modify file wp-posturl.php, in “function wp-posturl”, change the line:

    if (is_single()) {

    to

    if (is_single() || is_home() || is_feed()) {

    Then the URL will be output on main index page and feed. Please don’t hesitate to tell me if you have any problem.

  19. 2009/07/30 14:48 | #19

    [...] 作者的Add Post URL插件页面 [...]

  20. 2009/08/10 10:14 | #20

    [...] 2.Add Post URL:这个插件允许你在文章的顶部或底部插入一段文本,例如:文章的版权声明。 [...]

  21. 2009/08/13 00:20 | #21

    不错的插件,我一直在用

  22. 2009/08/17 22:08 | #22

    Hi,
    i,am mostafa soufi and my language as persian, Converted your plugin in language persian at sort use (po,mo) file.
    http://www.4shared.com/file/125639184/f1046ee8/wp-posturl-fa_IR.html
    http://www.4shared.com/file/125639189/8fb51255/wp-posturl-fa_IR.html

  23. 2009/08/20 09:11 | #23

    @Mostafa Soufi
    Hi Mostafa Soufi,

    Thanks your effort. I’ll add your update into the plugin soon.

  24. 2009/08/21 12:16 | #24

    [...] 作者的Add Post URL插件页面欢迎转载,转载请注明: 转载自 WebBeta本文链接地址: WP-PostURL – 添加链接与版权声明插件 [...]

  25. 2009/08/21 20:27 | #25

    [...] 原作者的插件主页在这里 [...]

  26. 2009/10/14 14:59 | #26

    谢谢,非常不错的插件!
    能在文章中间加入版权也真的非常不错的.希望能开发出来.

  27. 2009/11/12 13:13 | #27

    [...] 此文转载于 http://easwy.com/blog/wordpress/wp-posturl/ [...]

  28. 2009/12/10 10:17 | #28

    很好的插件!,正在使用,,,,,支持一下~~

  29. 2009/12/10 13:52 | #29

    怎么用不了??
    下载,启用了。但是在后台设置
    第3步的时候。到设置–>添加文章链接页对插件进行配置。
    就该页无法显示~~~晕~~~~

  30. 2009/12/10 17:11 | #30

    @安逸哇
    还是第一次收到这样的报告,不知道是不是和其它插件冲突了。或者你删掉再重装一次试试

  31. 2009/12/12 19:13 | #31

    [...] This plugin allows you to insert a user specific text at the beginning/ending of all your post.版本 1.0 | 作者为 Easwy Yang | 访问插件主页 [...]

  32. 2009/12/24 00:51 | #32

    支持下~不错~

  33. 2009/12/30 16:21 | #33

    不错,支持

  34. 2010/01/10 22:50 | #34

    很不错的插件,加载速度理想。

  35. 2010/01/10 22:55 | #35

    [...] WP-PostURL Plugin是国人Easwy开发的一款可以在文章的开始或结尾处加入文本、广告、版权等HTML信息的轻量级的插件。当初左手烟@选择它的原因就是能在文章末尾加入版权信息,实际使用下来也确实不错。但是我今天把它停掉了,因为能用代码实现的功能我还是尽量不用插件。本篇文章结尾处知识共享协议即为代码实现:<p><strong>转载本篇文章必须遵循 <a style="color:#F00" href="http://creativecommons.org/licenses/by/2.5/cn/&quot; title="知识共享协议" target="_blank">知识共享署名 2.5 中国大陆许可协议</a> ! </strong></p><p><strong>原文作者:<a href="<?php echo get_option('home'); ?>/"><?php the_author() ?></a>   原文链接:<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong></p>如果要以网址的形式显示,用下面的代码:原文链接:<a href="<?php the_permalink() ?>"><?php the_permalink() ?></a> 转载本篇文章必须遵循 知识共享署名 2.5 中国大陆许可协议 ! 原文作者:左手烟   原文链接:本站正式弃用WP-PostURL Plugin    如果你喜欢本站文章,请用鼠标猛点这里进行订阅 [...]

  36. 2010/01/14 23:26 | #36

    [...] Add Post URL——这个是在文章的前面或尾部插关于版权问题和固定链接的插件(类似Blogbus貌似是自带的一段话)。插件主页点这里 [...]

  37. 2010/02/05 20:08 | #37

    [...] Add Post URL [...]

  38. 2010/02/20 12:32 | #38

    [...] Add Post URL 添加链接与版权声明 本插件允许你在所有文章的开头或结尾处插入一段自定义的文字。这段文字可以是你的版权写明,也可以是广告,或者其它文字。 安装完插件后,你可以自由编辑你的用户自定义字符串。自定义字符串允许使用HTML语句,请参考插件提供的缺省字符串。另外,你还可以在自定义字符串中使用下面的变量:%site_url% – 站点的URL链接 %site_name% – 站点的名字 %post_url% – 显示这段内容 [...]

  39. 2010/02/22 12:17 | #39

    [...] WordPress添加链接与版权声明插件Add Post URL WordPress Add comments Add Post URL This plugin allows you to insert a user specific text (such as copyright, credit, etc.) at the beginning/ending of all your posts. 当前版本 1.1 | 作者为 Easwy Yang | 访问插件主页 [...]

  40. 2010/03/14 21:43 | #40

    [...] 插件下载 http://wordpress.org/extend/plugins/wp-posturl/ &#160; 插件介绍 访问插件主页  [...]

  41. 2010/03/15 10:01 | #41

    Great plugin. I was looking for something like this all day. It is very useful.

    Thank you
    ~ Tom

  42. 2010/03/22 10:05 | #42

    [...] 原作者的插件主页在这里 [...]

  43. yuanxujie
    2010/04/18 01:53 | #43

    谢谢作者,在WordPress跟着链接过来的,请问下这个插件能不能做成按照不同的category的post添加不同的文字的功能的,我不是用这个插件来增加版权信息,我是用来推广,如果能在不同的category的情况下发布不同的文字,对我来说更容易进行产品推广,也有利于seo,个人的一点建议。
    谢谢!

  44. 2010/04/19 10:01 | #44

    @yuanxujie
    你希望的这个功能,可能那些添加广告的插件已经支持了,你找一下看看吧

  45. 2010/04/25 14:48 | #45

    [...] Add Post URL 这个是在每篇博文开头或者结尾添加一段自定义文字,这段文字可以是你的版权声明,也可以是广告,或者其它文字。就比如我的每篇文章下面都有,当然这个插件不能为你以前的文章添加,只能新文章的时候添加。也是需要设置的,自己到设置里面看看把。具体介绍请看插件作者的介绍http://easwy.com/blog/wordpress/wp-posturl/。 [...]

  46. 2010/05/01 11:45 | #46

    很好,支持!

  47. 2010/05/02 00:59 | #47

    [...] 作者的Add Post URL插件页面 [...]

  48. 2010/05/09 12:29 | #48

    [...] 文章链接添加:Add Post URL,可以在文章开头或者结尾的位置,增加版权信息,广告代码之类,同时你可以选择在哪些页面显示这些说明或代码 [...]

  49. 2010/05/16 16:53 | #49

    虽然一般都是采用 cc 协议授权,但有时候一些博文还是想要保留版权的,我建议增加一个功能,允许在每篇文章发表时设定是否显示预设的内容,就像 Sociable 有一个 Disable Sociable 选项一样,你可以参考下,谢谢了!

  50. 2010/05/17 09:09 | #50

    @峄峰
    嗯,这个功能会考虑在下一版本中加入。

  51. 2010/05/30 13:06 | #51

    [...] 当然,你还可以用这个插件原作者的插件主页在这里 发表评论 | Trackback 目前还没有任何评论. [...]

  52. 2010/06/10 12:55 | #52

    [...] 作者的Add Post URL插件页面 [...]

  53. 2010/06/11 19:07 | #53

    [...] 作者的Add Post URL插件页面 [...]

  54. 2010/06/13 15:54 | #54

    好东西,下了几个老外的,都不好使。国人的东西果然一点也不差。

  55. 2010/06/15 04:55 | #55

    [...] 作者的Add Post URL插件页面 [...]

  56. 2010/07/03 10:46 | #56

    峄峰 :虽然一般都是采用 cc 协议授权,但有时候一些博文还是想要保留版权的,我建议增加一个功能,允许在每篇文章发表时设定是否显示预设的内容,就像 Sociable 有一个 Disable Sociable 选项一样,你可以参考下,谢谢了!

    期待这个功能,博客有很多共享的文章,总不能也注明自己的版权吧!

  57. 2010/07/03 12:47 | #57

    @半部赵
    这段时间工作比较忙,等我忙完了会立即添加此功能。多谢关注!

  58. 2010/08/03 10:47 | #58

    用上了,感谢作者

  59. 2010/08/07 12:09 | #59

    [...] 作者的Add Post URL插件页面 [...]

  60. 2010/08/09 09:49 | #60

    [...] WP-Syntax WP-RecentComments WP-MulticolLinks WP-EasyArchives–文章归档 Add Post URL–版权说明 MobilePress–手机浏览插件 Twitter Tools–微博插件 WordPress [...]

  61. 2010/09/18 15:23 | #61

    [...] 作者的Add Post URL插件页面 Filed under: –WP plugins– 标签:WordPress, 插件 Comments (0) [...]

  62. 2010/10/03 06:50 | #62

    [...] 我用的是Wordpress程序,于是上网搜“wordpress 本文地址”,很容易找到一个叫做WP-PostURL的插件,不过又看到别人说这个插件有广告就懒得用了。反正我只需要很简单的就行,不必那么美观,于是选了一个直接修改Wordprass主题模板的方法。 [...]

  63. 2010/10/11 19:08 | #63

    恩,不错,开源就是好啊,我也弄了一个主题(脸皮很厚)

  64. 2010/10/29 10:27 | #64

    [...] 如果你喜欢插件的方式而不在乎网站的速度,可以使用WP-PostURL这款插件,后台设置的功能也比较强大,具体的设置也可参照插件作者的页面。 [...]

  65. 2010/12/06 22:41 | #65

    Nice and useful plugin. Appreciate your efforts.
    Thanks!

  66. 2010/12/28 12:37 | #66

    你好,我在用着你设计的add-post-url这个插件,觉得很喜欢很方便。

    最近我将腾讯微博【一键转发】的代码放进去的时候,却发现到会有少许的bug。
    一键转发的代码在 http://open.t.qq.com/apps/share/explain.php

    你可以自行测试一下,那就是:在IE下可以成功一键转发,但是在谷歌浏览器底下,链接、图片等设置都消失了,原因是:

    我发现到,原来问题就出在:你的插件将这一句
    http://v.t.qq.com/share/share.php?title='+_t+'&url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic;

    改成
    http://v.t.qq.com/share/share.php?title='+_t+'&url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic;

    然后IE在解析的时候似乎自动将多出来的这些代码【#038;】去掉了,所以能够正常转发到微博去,但是谷歌浏览器却因为这些冗余的代码而出错

    请看看能不能解决这个问题,谢谢你

  67. 2010/12/29 10:30 | #67

    @紫雨老师
    好的,我看一下。
    另外,你试试自己修改主题会不会有问题,可以参考我的这篇文章:
    在文章末尾添加版本声明和文章的链接

  68. johnson

    插件真是不错,seo利器,加油,希望能有更新更多版本出现

  69. 2011/01/19 12:37 | #69

    [...] 作者的Add Post URL插件页面 [...]

  70. 2011/01/23 01:59 | #70

    [...] 1.1 版本 | 作者为 Easwy Yang | 访问插件主页 [...]

  71. 2011/02/03 20:08 | #71

    [...] 原作者的插件主页在这里 [...]

  72. 2011/03/19 14:13 | #72

    @Easwy
    偶然间转回来了,不知博主还有没有空,增加这个功能啊……

  73. 2011/04/18 15:12 | #73

    Dust2k :
    感谢你的插件,呵呵。。
    不过你的英语部分一个词错了,你说感谢的时候用了”Thinks”,应该是“Thanks”。。。呵呵。。

  74. 2011/07/06 23:47 | #74

    你好,我用了你插件有一段时间了,很喜欢这个插件。
    有一个问题一直困扰我,请教一下如何实现:
    我的文章栏目有8个,其中2个栏目的文章是我原创的,我希望标记为原创的版权声明。另外六个是转载的,我需要一个另外的版权声明,说不说是原创的。
    不知道这样的功能如何实现?
    我不懂PHP,CSS等,自己猜测可能可以修改代码用if判断分类的id来实现,可是自己写不来,如果你方便的话,可否指导一下。
    谢谢!

  75. 2011/07/19 10:56 | #75

    @zztt
    已经有网友提出这个需求了,我在最近会抽空把这个需求加入。谢谢关注!

  76. 2011/08/12 10:56 | #76

    很好,顶一下

  77. 2011/08/15 13:28 | #77

    Your plugin works really well. I am trying to use it to automate adding a ‘call to action’ at the bottom of posts as many of them are guest posts. My problem is that where I have placed it manually previously it ends up doubling up. Is there any way to only add footers to future posts and not ones written in the past?

  78. 2011/08/17 10:32 | #78

    @Paul
    Hi Paul, I’ll add a new feature in future release which allow you select if adding post URL for a specific post. Current you can not do this if you don’t modify the plugin by yourself.

  79. 2011/09/29 14:34 | #79

    很好的一款插件,不错,正在使用,支持下

  80. 吴东城
    2011/10/15 08:26 | #80

    我安装完后该插件后,页面没有显示出来,求助!!!

  81. 2011/10/18 16:41 | #81

    @吴东城
    能否详细描述一下问题的现象

  82. 2012/01/20 00:33 | #82

    问一下,新版更新了什么?

  83. 2012/01/20 09:29 | #83

    @小峰JoysBoy
    新版允许控制指定的文章是否显示链接,举个例子来说,如果某篇文章是转载的,那么可以设置一下,不为该文章显示你的版权信息。

  84. 2012/01/20 13:33 | #84

    @Easwy 谢谢回复啊,貌似重新更新了,之前没看到插件里有changlog,所以跑过来问下

  85. 2012/01/20 16:45 | #85

    我使用twenty ten主题,没有修改主题php代码,前台一直无法显示posturl的指定内容,请问是怎么回事?

  86. 2012/01/20 16:47 | #86

    原来是没有勾选“缺省为文章添加链接:”,谢谢。

评论本文