- WordPress 2.7 Cookbook
- Jean-Baptiste Jung
- 426字
- 2021-04-01 13:55:50
Integrating Twitter on your theme using the Twitter Tools plugin
Twitter is a free micro blogging service that allows you to post short messages (less than 140 characters) by answering the simple question—What are you doing?.
Getting ready
I must admit that I was very skeptical at first about the use of Twitter for a blog. However, I decided to give it a try and found it really helpful. It is a great way to get in touch with other bloggers, interact with your readers, and promote your blog posts. By the way, my twitter URL is http://twitter.com/catswhocode, so don't hesitate to get in touch with me!
However, similar to your RSS feed, in order to invite visitors to your twitter account you have to promote it on your blog—this way your readers will know that you're using Twitter. In my opinion, the best way to tell your readers about your twitter account is to display your tweets on your blog. In this recipe, we'll see how to do it—with and without a plugin.
My favorite Twitter plugin for WordPress is, by far, Twitter Tools—created by Alex King who has released numerous popular WordPress plugins, such as Simple tagging or Share This.
The Twitter Tools plugin is great because it offers so many possibilities; for example, if your theme uses widgets, you can simply drag the Twitter Tools widget to your sidebar and you're done! Twitter Tools also gives you the choice between displaying only your latest Twitter entry or latest page.

How to do it...
- To install the Twitter Tools plugin, visit the following link and download it: http://wordpress.org/extend/plugins/twitter-tools/. Then, upload the
twitter-tools.php
file into yourwp-content/plugins
directory. - Once you have activated the plugin, a new tab—where you can set up your Twitter Tools options—will appear under Options in your WordPress Dashboard.
- With the Twitter Tools plugin, displaying your Twitter entries is made very easy. If your theme is widget-ready, go to Design | Widgets on your WordPress Dashboard and drag the Twitter Tools widget to your sidebar. Once you have saved the modification, your twitter entries will appear on your sidebar.
- If your theme isn't widget-ready, you have to edit the
sidebar.php
file and add the following function: - Display your last tweets:
<?php aktt_sidebar_tweets(); ?>
- Display only your latest tweet:
<?php aktt_latest_tweet(); ?>
- Joomla! 1.5 SEO
- Midjourney從入門到實戰應用
- Authorware應用案例教程
- After Effects全套影視特效制作典型實例(第2版)
- 斯科特·凱爾比的零基礎攝影后期課 Lightroom數碼照片調修技法
- NHibernate 2 Beginner's Guide
- 中文版Photoshop CS6平面設計從新手到高手(超值版)
- Premiere CC視頻編輯入門與應用
- OpenCV項目開發實戰(原書第2版)
- Moldflow 2021模流分析從入門到精通(升級版)
- 中文版Photoshop CS5平面設計實用教程(第2版)
- 計算機輔助翻譯基礎與實訓
- Deep Inside osCommerce: The Cookbook
- 中文版Corel DRAW X5案例實訓教材
- Jasmine JavaScript Testing