WordPress article non-plug-in add article links and Web site copyright information

Source: Internet
Author: User
Keywords WordPress

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

If your blog has a high probability of being copied, then your article is really wonderful. But we do not want to view the phenomenon is: After the copy of the article after the modification, but become someone else's work. Although we are very helpless about this behavior, we can at least add a copyright to our article to express our firm attitude.

Add a copyright note there is no trouble, nothing more than the end of the article with the "original article, reproduced please specify: xxxxxx" such a copyright notice. Looks simple operation, but persisted for a long time, each stationmaster will feel the headache very much, each time mechanical repetition, repetition, ...

To solve this problem, let's take a look at this add Post URL plugin, which allows you to insert a custom text at the beginning or end of the article. The operation is also simple, because you can use the following variable in the custom string:

%site_url%-Site URL link

%site_name%-Name of the site

%post_url%-url link to the article showing this content

%post_title%-title of the article showing this content

ADD Post URL plug-in installation and other Plug-ins, you can install online or upload installation, and finally do not forget to activate the plug-in, and the relevant parameters for configuration save. But for a WordPress plug-in control, and do not want to let the site use too many plug-ins, because the more plug-ins used, the more network resources consumed, the speed of access will become slower.

After studying the Add Post URL, the implementation principle is also realized through the invocation of the function. WordPress has a certain understanding of the webmaster, will know that WordPress itself with a lot of functions, you can simply achieve the function of adding links above.

Locate the single.php of your site template installation directory (/wwwroot/wp-content/themes/the folder name/) of the template you are installing, but you can also "look-> edit" in the background Find the single.php file, use the software to open it, find "" This PHP statement, the function of this PHP statement is output Web site article content.

After you find this statement, after which you add a few PHP statements, as follows:

< p > Original articles, reproduced please specify: from < a href= "<? php bloginfo (' SiteURL ');? > "target=" _blank "></a >< p >< p > This article link address:< a href=" <? php The_permalink ()? > >< php the_title ();? >< a ></p >

The exact location of the code placement can be referenced in the figure:

  

In the upper part of these PHP statements:

Represents the address of your blog

< php bloginfo (' name ');? > represents the theme of your blog

< php the_permalink ()?> represents a link to this article

< PHP the_title ();? > represents the title of this article

The upper part of the statement to achieve the function is: to indicate the source of the article site, the title of the article.

The above methods of using non-plug-in way to add article links and Web site copyright information, can indeed give the server a lot of pressure relief. If you have any problems in the use process, please contact me, learn together, progress together.

This article by http://www.diwudai.tv/wandering in the end original, reproduced please keep the link, thank you!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.