wordpress加入转载声明

来自http://tunps.com/add-quote-declaration-in-wordpress

wordpress中加入转载声明对于原创作者是很重要的。 因为主题的不同,可能具体修改代码的位置有所不同。以本博客的oriental主题为例。 打开主题目录的single.php,定位到23行:
23
24
25
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>
在23行下面加入我们的转载声明,最终代码如下:
23
24
25
26
27
28
29
30
<p>
本文链接:<a href="<?php the_permalink();?>" title="< ?php the_permalink();?>">< ?php single_post_title(); ?></a>
@ <a href="<?php bloginfo('siteurl'); ?>">< ?php bloginfo('name'); ?></a> ,
作者:< ?php the_author()?>
</p>
<div class="entry">
< ?php the_content('Read the rest of this entry »'); ?>
</div>
wordpress_quote_declaration done!

About tunpishuang

just 4 fun·····
This entry was posted in 未分类 and tagged . Bookmark the permalink.

One Response to wordpress加入转载声明

  1. 匿名 says:

    学习了,正打算用wp呢,

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>