This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.




Twig allows you to display your Tweets intermingled among your WordPress posts, sorted chronologically. Other plugins are available to display your tweets in a widget or separate list, however, this plugin displays your tweets on your front page as a part of your blog. It also caches your Twitter feed and updates at an interval specific my you.

Please note that this plugin is in the beta stage. If you encounter bugs or have feature requests, please feel free to let me know.


To access the settings page, navigate to the WordPress Plugins page and click Settings next to the Twig (plugin must be activated for this to appear).

Configuration Fields

  • Twitter Username – The username (not e-mail) that is associated with your Twitter account.
  • Twitter Password – The password that is associated with your Twitter account.
  • Refresh Interval – The time in minutes between updating the cache from Twitter (do not set this number too low, else you risk being banned by Twitter). Recommended: 30 minutes.
  • Tweet limit between posts – If you tweet more oftan than you post to your blog, this option allows you to limit the number of tweets show between each post to avoid congestion.
  • Date Format – Pattern to format the Tweet date on your blog. For a reference, please see this page. Example: M j, Y @ h:i A
  • Only include Tweets that contain text – Will only display Tweets that contain a specific string, useful for “hashtags” or “bangtags”.
  • Hide @replies? – Would you like your @replies to other Twitter users displayed?
  • Prepend username to tweets? – Add your Twitter username to the beginning of Tweets?
  • Trim hyphens from tweet? – If you prepend your Tweets with a hyphen, this can optionally remove it (for example, if you tweet says, “- I’m taking a nap.”” it would display as “I’m taking a nap.””)
  • Tweet Template – The template used to format and display each tweet.
  • Show/Hide Template (optional) – The template for the Delete button/link, displayed to those with Administrator privileges to quickly delete a tweet from the cache.
  • Clear Cache – Clear the most recent entries in the cache and refresh them from Twitter. This may be useful if you are experience data issues.

Planned Enhancements

  • Localization
  • Ability to delete tweets from cache via Admin panel
  • Support for multiple feeds
  • Admin page redesign


  • Sample screenshot of Twig in action.
  • Screenshot of the Settings page in Admin.
  • You decide how the Tweets look on your front page with the use of templates.


  1. Unzip the contents of the ZIP file and upload the ‘twig’ folder to your WordPress plugins folder.
  2. Enable Twig in your WordPress plugins page.
  3. Click the Settings link for Twig in the plugins page to configure Twig for the first time. At minimum, you’ll need to enter your Twitter username and password (don’t forget to click Save Changes!).
  4. Add the following code to “the loop” in your theme’s index.php file, near the top of the loop (ie, just under “while (have_posts())”):
    <?php if(is_home()) twig_display_tweets(); ?>


I’m getting an error. What should I do?

If you’re getting an error, I can try to figure out what the issue is. If it is a bug, I will try to fix the issue in the next release. Please contact me via the author’s web site link.

Contributors & Developers

“Twig” is open source software. The following people have contributed to this plugin.


Translate “Twig” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Fixed bug for servers that don’t support short tags.


  • Fixed “You do not have sufficient permissions to access this page.” bug when accessing Settings page.


  • Fixed issue with tweets from first posts page appearing on subsequent pages.


  • Commented out CURLOPT_FOLLOWLOCATION in twitter.class.php.
  • Fixed bug in twig-settings.php where form submission path was incorrect.