- 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(); ?>
- 中文版SketchUp 2022完全實戰技術手冊
- 中文版Maya 2012實用教程(第2版)
- Pro/E Wildfire 5.0中文版入門、精通與實戰
- Liferay User Interface Development
- ASP.NET jQuery Cookbook
- Oracle Enterprise Manager Grid Control 11g R1: Business Service Management
- Photoshop CS6完美創意設計:不一樣的圖像藝術處理
- AutoCAD入門教程全掌握
- Seam 2 Web Development: LITE
- After Effects 2022從新手到高手
- 手機/電腦雙平臺剪映短視頻后期編輯從新手到高手
- Excel 2013公式·函數與數據分析
- 中文版Photoshop CC 2018基礎培訓教程(全彩版)
- 從零開始學Audition音頻處理:錄音+剪輯+變調+降噪+美化
- Liferay Portal 5.2 Systems Development