
给自己的页面添加一点作者信息,不太喜欢插件版,就手动添加了一份.将以下代码插入到 模板 -> 文章页面模板 (single.php) -> 插入将以下代码插入就OK了
<div style=’border:1px #ccc dashed;margin-bottom:5px;text-align:center’>
<font color=”#000000″>
文章作者 : <a href=’http://www.yshe.net’ target=’_blank’>阿疯</a>
本文地址 : <a href=’<?php the_permalink(); ?>’ target=’_blank’>< ?php the_title()?></a>
版权所有 © 转载时必须以链接形式注明作者和原始出处!
<a href=”http://t.qq.com/ysheII” target=”_blank”><img src=”http://v.t.qq.com/sign/ysheII/8f61bd34ba7b6995a099684029a8fb8335cc67df/1.jpg” width=”380″ height=”100″ /></a>
</font>
</div>
9-20更新
方法2:functions.php末尾添加
function feed_copyright($content) {
if(is_single() or is_feed()) {
$content.= “<div class=’post_info’> “;
$content.= ‘<div> » 转载请注明来源:<a title=”疯狂的世界” href=”http://www.yshe.net”>疯狂的世界</a> » <a rel=”bookmark” title=”‘.get_the_title().’” href=”‘.get_permalink().’”>《’.get_the_title().’》</a></div>’;
$content.= ‘<div> » 本文链接地址:<a rel=”bookmark” title=”‘.get_the_title().’” href=”‘.get_permalink().’”>’.get_permalink().’</a></div>’;
$content.= ‘<div> » 订阅本站:<a title=”阿疯的RSS源” href=”http://feed.yshe.net/”>http://feed.yshe.net/</a></div>’;
$content.= “</div>”;
}
return $content;
}
add_filter (‘the_content’, ‘feed_copyright’);
这个想法不错哦
这个很有用 我一直没找到好看的格式添加
今天看到了一定要折腾一下了
HOHO
唉。以前添加了什么作者信息,现在都不知道在哪里取消了,现在2个都放在那里。那天找找看吧。
我添加的版权信息不知为何没有外面那个小框框
没用。。那些不加你版权的你拿他没办法。。
恩,我的就是这样加的,吼吼!