Twitter,一个国外的微博客平台,各方面都做的不错,尤其API.现在改用wordpress,有很多插件可以很方便调用你在Twitter发布的消息,例如我使用的twitterRSS plugin.现在介绍下使用方法:
- 将twitterrss.php上传到/wp-content/plugins/文件夹下面.
- 然后登录后台激活twitterRSS.
- 将
<?php get_twitterRSS(); ?>放到你的模板文件中.
1: $rss_url = 'http://twitter.com/statuses/user_timeline/neyond.rss';
2: $username = "neyond"; //修改成你的Twitter的用户名
3: $num_items = 1; //需要显示的信息数
4: $before = "<p>"; //HTML标签
5: $after = "</p>";
6: $hide_links = "true"; //是否隐藏链接
7: $hide_username = "false"; //是否隐藏用户名





No Comments