Twitter,一个国外的微博客平台,各方面都做的不错,尤其API.现在改用wordpress,有很多插件可以很方便调用你在Twitter发布的消息,例如我使用的twitterRSS plugin.现在介绍下使用方法:

  1. 将twitterrss.php上传到/wp-content/plugins/文件夹下面.
  2. 然后登录后台激活twitterRSS.
  3. <?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"; //是否隐藏用户名

下载地址:http://eightface.com/files/wor.....terRSS.zip