Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a client who wants their blog to display both Posts and Tweets in chronological order. These should be mixed into the same feed. I didn't find any plugins that accomplished this, although there may be one I missed which someone could recommend.

I was thinking to pull the tweets and store them as a custom post type, and then just pull both post types when displaying, but Twitter's TOS does not allow the storing of the data.

Only option I see is to pull the tweets on page load, and then write a custom function to merge the two chronologically, which seems like a bit of work. Also, as far a caching the tweets, how can I go about this, considering that Twitter does not allow for storage of this information?

Does anyone have a recommendation on the best way to accomplish this? Also the most efficient?

Thanks in advanced.

share|improve this question
    
I think the idea that Twitter's TOS precludes you saving tweets to your site is not something you should worry about. Tons of plugins do exactly this and ethically you have a right to back up your tweets. The answer implies this but I felt it's worth making explicit. If you wanted to merge two custom post types you can just give an array of post types to WP_Query in the 'post_type' argument. –  Jeremy Clarke Sep 28 '12 at 19:39
add comment

1 Answer

up vote 1 down vote accepted

I've done this with Twitter Tools. Basically it hooks up the blog to a Twitter feed, and for each new tweet creates a blog post. You can put twitter posts in a separate category (or add tags), and use that to style twitter-posts differently from regular posts, hide the comments field, whatever.

Hope this helps - good luck!

share|improve this answer
    
So you are saying that the blog automatically checks Twitter for new posts, and then creates a Wordpress post for this? –  Chris Aug 11 '11 at 22:06
1  
Yep. You do have to go through a few hoops to get Twitter authenticated - and it looks like the documentation isn't quite up to date, so check the WP forums for tips - but once you're connected it works pretty seamlessly. I've had a client using it for months and haven't heard of anything going wrong. –  Michelle Aug 11 '11 at 23:05
    
Cool. I will check it out. Sounds a lot easier than a custom implementation. Thanks! –  Chris Aug 11 '11 at 23:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.