Comment Tweets For WordPress

Comment Tweets For WordPress

For the past couple of weeks, I’ve been recording a premium screencast for Envato in which I share how to build a WordPress plugin from the ground up using professional development techniques such as object-oriented programming, proper use of Actions and Filters, LESS, CodeKit, and more.

While working on the screencast, one of the things that I wanted to do was to showcase exactly what it’s like to build something from the ground up, release it, and then experience the various comments, support issues, and so on. After all, that is the norm for releasing projects to the public.

The result of all of this is Comment Tweets For WordPress.

About Comment Tweets For WordPress

Comment Tweets For WordPress

A few tweets on a post in WordPress with the Twentyeleven Theme.

One of the challenges of maintaining a blog is that the conversation gets fragmented among whatever social networks you share your site.

For example, you publish your site and it’s picked up via RSS, then you link it up via Facebook and Twitter. A portion of the conversation is going to happen in the comments, some on Facebook, and some on Twitter.

Since I primarily use Twitter, I wanted an easy way to provide links to tweets that would appear directly below the commet feed (but above the comment form) so that I could capture as much of the conversation as possible.

Plugin Features

Comment Tweets For WordPress

The default plugin dashboard without any Tweets.

Generally speaking, Comment Tweets For WordPress offers the following features:

  • Custom fields below the post editor that allow you to paste links to tweets related to given blog post
  • Support for adding as many tweets as you’d like. That is, there’s no limited number of URL’s that you can provide.
  • Remove a tweet by simply deleting the URL
  • Renders the tweets in the order that you list them in the dashboard
  • Styles are provided by the native Twitter API

This is very much a 1.0 plugin, so any and all feedback, feature requests, and bug reports are welcome.

20 Comments

This is great Tom, installing it now.

Will let you know how it runs.

any thoughts on automating the process?

    Eh, maybe. I imagine the process would require setting up authentication with Twitter and then periodically polling the account to see if any tweets have come in related to the linked post.

    If a person uses a link shortener, there’s the added challenge of checking each link to see where it really resolves.

    Thinking it could be done, not sure if I’m planning to do it, though :).

When will the tutorial be up on Envato? I love to see the process of other devs.

Awesome work, Tom! I might have a bit more of a look into this and see if I can offer any feedback.

To start, the Description in the plugin directory has a link to the “project page”… but it’s broken (apparently I broke the internet when I clicked it, I hope you can fix it ;))

Hey, this is cool : ) Also, I’m in your plugin banner! #ifeelspecial

Nice work. I kindof like the manual concept of it. That way, if you get a really good Tweet, you can make sure it goes on the post. Otherwise, no love lost.

    Yeah – I’m not sold on automating the process until I get some more feedback. The ultimate goal is simply to close the gap that exists between people interacting on Twitter and people interacting in comments.

    I think there’s room for improvement, but I figured this was a solid MVP / 1.0 on which I can improve it based on feedback.

      Now if only there was a similar way to pull in Facebook comments. Every plugin I’ve tried looks terrible IMO. I love the way this looks. I like the manual nature of it as well. Automation would make sense if I had to manage a number of different blogs.

        Unfortunately, Facebook’s API makes this a bit more difficult than Twitter. They are significantly more “closed” and less web-friendly. Trying to keep everything in that walled garden of theirs.

Tom,

It was a GREAT tutorial. I learned more from those four screencasts than from reading two very expensive and long books that I read cover to cover.

What I would love now is to kick it up a few levels by teaching custom table creation for a plugin and custom post types. With your style of instruction I could finally learn the two additional skills and finish this project that has been kicking my butt for quite some time.

I wanted to also mention how much I appreciate your pasting the code in and explaining it line by line rather than the more common screen cast practice of forcing viewers to endure watching the typing (and the inherent typos). I can easily pause the video to keep up and this practice makes the videos download much faster.

If I have to find something to complain about — OK, please increase your font in Coda 2 for us old guys with old eyes.

I would appreciate any guidance or resources to help me with creating custom tables when I activate my plugin and how using a custom table would change the rest of your plug-in code.

THANKS FOR A GREAT TUTORIAL!!!

Hello Tom,

amazing plugin, well done!

I have only one question: I’d like to show tweets also in page comments, not just in post comments. How can I do that?

Thank you so much,

Daniele

Hi Tom!

I solve my issue, adding a few rows of code to show tweet url metabox at the same time in post and page, as you can see in the screenshot below:

I hope it can be useful for every users, thank you again, Daniele

Leave a Reply

Name and email address are required. Your email address will not be published.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>