感谢你的到来
一起学习进步

WP-PostURL -wordpress版权插件

This plugin allows you to insert a user specific text at the beginning
and/or ending of all your posts. 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 posts; otherwise no head text will be inserted.

If the footer text is not empty, it will be inserted to the foot of your posts; 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 2.1.0 plugin), you can define the default behavior. If
you select “Add Header and/or Footer For Old Posts”, 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

    1
    wp-posturl

    directory to the

    1
    /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 ]

 

Add-post-url-example-300x165-2

Post Example When WP-PostURL Works

wp-posturl-option1-300x218-1

WP-PostURL Option Page (Part 1)

wp-posturl-option2-300x205-1

WP-PostURL Option Page (Part 2)

post-control-option-300x207-1

Add Post URL Option When New/Edit Post

Frequently Asked Questions

Why my setting changes when I re-install/re-activate the plugin

In release 2.1.0, the “Add Header and/or Footer Text For Old Posts” option
will always be enabled when you re-install/re-activate the plugin. The reason
is to fix the issue in release 2.0.x series. In release 2.0.x, this option is
not defined because of WordPress behavior changes for plugin updating.

Why WP-PostURL Does Not Add Text To My Posts

  • In a word, please check if you select “Add Header and/or Footer Text For Old Posts” option. If not, select it then have a look.
  • Please check “Add Post URL?” option for posts you want the text to be added.
  • If it still not work, make sure regenerate the cache if you use a WordPress
  • Cache Plugin (such as WP Super Cache), then have a look.

Here are some detail information for “Add Header and/or Footer Text For Old
Posts” option:

In release 2.0 and above, I add a new feature: allow user decide which posts
display the header and/or footer text. This will add a Custom Field, named
“posturl_add_url”, for each new created post.

But for the posts you published before use WP-PostURL 2.0+, they do not have
Custom Field “posturl_add_url”. For those posts, you need configure “Add
Header and/or Footer Text For Old Posts” option. If you check this option,
all existed posts will be added the header and/or footer text; otherwise those
posts will not be added the header text and/or footer text. If some of those
posts are against with this default behavior, you need to re-edit this post to
set “Add Post URL?” option for those special posts.

Changelog

2.1.0

The following change list is against version 1.1:

  • Fix: Set “Add Header and/or Footer For Old Posts” to true by
    default, to fix no header/footer in release 2.0.x. If you uncheck this
    option but re-install or re-activate this plugin, you need configure it
    again. The problem in 2.0.x is because of a WordPress behavior changes.
    Link: Plugin activation hooks no longer fire for updates
  • New: Add single post control function, allow user control which posts display the user specific text.
  • New: Add default post control behavior for old posts.
  • New: Keep compatible with QingFeng’s origin change of post control function.

2.0.2

  • (This version is obsolete)

2.0.1

  • (This version is obsolete)

2.0

  • (This version is obsolete)

1.1

  • New: Allow user select which pages display the user specific texts.
  • New: Allow user define the header text or footer text, or both.
  • Fix: Fix configuration data lost when deactivated then activated again

1.0

  • New: The basic function

[ English ]

 

[ 插件描述 ]

 

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

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

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

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

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

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

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

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

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

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

WP-PostURL -wordpress版权插件插图4



赞(0) 打赏
未经允许不得转载:IT起义 » WP-PostURL -wordpress版权插件
分享到: 更多 (0)

相关推荐

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

跨境电商|抖音营销

微信:345497590QQ 345497590

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏