This is an old version of this answer!
Return to the current answerThis plugin is specifically coded to display one tweet per person. You can verify this by looking at screenshot-1.png.
I verified it by digging into the source code hoping to tweak it. The source code utter obfuscated spaghetti. After a while I concluded that it was useless to go any further with it.
Then, I looked for a better one at the WP repository. I couldn't find one that I was satisfied with enough to recommend it.
So ... I wrote a multi-featured shortcode that will do what you're wanting and a LOT more.
This ZIP file contains everything you need: [wcs_tweet_query.zip[/LINK]]
It contains four files: wcs_tweet_query.php, wcs_tweet_query_INFO.txt, wcs_tweet_query_sample.html, and wcs_tweet_query_sample.png.
A PNG screen capture is attached and in the ZIP file. It demonstrates actual usage of the shortcode. Here's the content of the INFO file. But, it may loose some of its formatting in this comment post.
This is actually a FAR more powerful and versatile solution
than you wanted. But, you may well find lots of additional
types of multiple user and/or multiple search item Tweets.
Using WCS TWEET QUERY
1. view: wcs_tweet_query_sample.png
2. in your current theme's functions.php file,
insert the content of: wcs_tweet_query.php
3. create a new page in WordPress
4. switch to HTML design more
5. insert the contents of: wcs_tweet_query_sample.html
6. UPDATE the page and VIEW it
You will see the same output as the PNG file.
* This PHP code creates a SHORTCODE that lets you easily put
Tweets anywhere you want them: pages, posts, or text widgets.
* It allows you to query in one of four ways: from, to, and, or.
* FROM and TO are for one or more Twitter users
* AND and OR are for one or more word searches and
for one or more #hashtag searchs
* It's actually a construction kit that gives you FULL control
over the content of the displayed Tweets and their CSS style.
* This works by letting you insert NEW TAGS inside your documents.
* HOWEVER, your editor MUST be in HTML mode to work with shortcodes.
* The NEW TAGS ARE:
<content>, <image_uri>, <image_tag>, <image_tag_link>,
<name>, <name_link>, <screen_name>, <screen_name_link>,
<uri>, <uri_link>, <published>, <published_ago>, <published_format>,
<updated>, <updated_ago>, <updated_format>,
* Each one of these tags will be replaced with that specific
segment of a single tweet
* The displayed Tweet data will repeat until your specific count
limit is reached OR until Twitter stops providing them
* Review the sample HTML to experiment until you're comfortable
using it
* The shortcode uses the cURL cache; it will automatically update
the Tweets displayed after about one hour on the next page/post view
The examples in the sample HTML demonstrate many features and
CSS stylings. But, here's the most basic presention:
This displays 5 tweets from the two specified Twitter users (WordPress and
me). The output list is very plain for this particular usage demonstration.
[wcs_tweet_query search_type='from' search_terms='wordpress wpcodesnippets' limit='5']
<image_tag_link>
<screen_name_link>
<updated_ago>
<content>
[/wcs_tweet_query]
I verified it by digging into the source code hoping to tweak it. The source code utter obfuscated spaghetti. After a while I concluded that it was useless to go any further with it.
Then, I looked for a better one at the WP repository. I couldn't find one that I was satisfied with enough to recommend it.
So ... I wrote a multi-featured shortcode that will do what you're wanting and a LOT more.
This ZIP file contains everything you need: [wcs_tweet_query.zip[/LINK]]
It contains four files: wcs_tweet_query.php, wcs_tweet_query_INFO.txt, wcs_tweet_query_sample.html, and wcs_tweet_query_sample.png.
A PNG screen capture is attached and in the ZIP file. It demonstrates actual usage of the shortcode. Here's the content of the INFO file. But, it may loose some of its formatting in this comment post.
This is actually a FAR more powerful and versatile solution
than you wanted. But, you may well find lots of additional
types of multiple user and/or multiple search item Tweets.
Using WCS TWEET QUERY
1. view: wcs_tweet_query_sample.png
2. in your current theme's functions.php file,
insert the content of: wcs_tweet_query.php
3. create a new page in WordPress
4. switch to HTML design more
5. insert the contents of: wcs_tweet_query_sample.html
6. UPDATE the page and VIEW it
You will see the same output as the PNG file.
* This PHP code creates a SHORTCODE that lets you easily put
Tweets anywhere you want them: pages, posts, or text widgets.
* It allows you to query in one of four ways: from, to, and, or.
* FROM and TO are for one or more Twitter users
* AND and OR are for one or more word searches and
for one or more #hashtag searchs
* It's actually a construction kit that gives you FULL control
over the content of the displayed Tweets and their CSS style.
* This works by letting you insert NEW TAGS inside your documents.
* HOWEVER, your editor MUST be in HTML mode to work with shortcodes.
* The NEW TAGS ARE:
<content>, <image_uri>, <image_tag>, <image_tag_link>,
<name>, <name_link>, <screen_name>, <screen_name_link>,
<uri>, <uri_link>, <published>, <published_ago>, <published_format>,
<updated>, <updated_ago>, <updated_format>,
* Each one of these tags will be replaced with that specific
segment of a single tweet
* The displayed Tweet data will repeat until your specific count
limit is reached OR until Twitter stops providing them
* Review the sample HTML to experiment until you're comfortable
using it
* The shortcode uses the cURL cache; it will automatically update
the Tweets displayed after about one hour on the next page/post view
The examples in the sample HTML demonstrate many features and
CSS stylings. But, here's the most basic presention:
This displays 5 tweets from the two specified Twitter users (WordPress and
me). The output list is very plain for this particular usage demonstration.
[wcs_tweet_query search_type='from' search_terms='wordpress wpcodesnippets' limit='5']
<image_tag_link>
<screen_name_link>
<updated_ago>
<content>
[/wcs_tweet_query]
Luke America | 06/23/11 at 6:27am
