如何在 WordPress 博客中手动加入收藏代码
发表时间 2009.01.28 - 2 条评论 - 分类:电脑网络 - 标签: wordpress, 收藏代码WordPress 中文用户一般都是采用插件的方式来实现”收藏或者分享本文”的功能,比如 addbookmarks、Share this 中文、17fav Bookmark & Share 这3个插件都可以实现这样的功能。
虽然这3款插件的功能都很强大,但对于 WordPress 来说插件用的多了会拖慢博客的载入速度!如果你只是想方便读者收藏文章而没有特殊要求(比如添加到 feed 中)的话,完全可以手动添加这些代码,而不用使用插件。
下面就是我所使用的收藏代码:
QQ书签:
<a
href="http://shuqian.qq.com/post?from=3&title=<?php the_title();
?>&uri=<?php the_permalink() ?>"
target="_blank">QQ书签</a>
百度搜藏:
<a
href="http://cang.baidu.com/do/add?it=<?php the_title();
?>&iu=<?php the_permalink() ?>"
target="_blank">百度搜藏</a>
delicious
<a
href="http://del.icio.us/post?url=<?php the_permalink()
?>&title=<?php the_title(); ?>"
target="_blank">Del.icio.us</a>
Google 书签
<a
href="http://google.com/bookmarks/mark?op=edit&bkmk=<?php
the_permalink() ?>&title=<?php the_title(); ?>"
target="_blank">Google书签</a>
鲜果热文
<a
href="http://www.xianguo.com/service/submitfav/?link=<?php
the_permalink() ?>&title=<?php the_title(); ?>"
target="_blank">收藏到鲜果</a>
digg
<a
href="http://digg.com/submit?phase=2&url=<?php the_permalink()
?>&title=<?php the_title(); ?>"
target="_blank">digg</a>
diglog
<a
title="推荐到diglog"
href="http://www.diglog.com/submit.aspx?title=<?php the_title();
?>&url=<?php the_permalink()
?>">推荐到diglog</a>
yahoo收藏
<a
href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=<?php
the_permalink() ?>&=<?php the_title(); ?>"
target="_blank">yahoo收藏</a>
Twitter
<a href="http://twitter.com/home?status=我正在看《<?php the_title(); ?>》这篇文章,还不错。文章链接:<?php the_permalink() ?>" title="Click to send this page to Twitter!">Twitter</a>
天涯终于出现了啊,新年快乐!上次你说的问题我没有搞懂,看别人的代码也看不懂。
[回复]
天涯行客 回复:
二月 1st, 2009 at 21:28
所以我也就换了个主题,现在这个主题我也改的差不多了
[回复]