Assignment headlines on a page for commenting

Per a request from Indrani yesterday, I’ve put together a quick Javascript to pull the most recent headlines and excerpts from each of your personal websites into one page. You’ll be able to use this to automatically collect all of your posts for a given assignment into one page like this:

At the top of the list, it will show you the total number of responses to the assignment. You can then use the commenting functionality at the bottom of the page to hold threaded conversation on the assignment.

To get started, create a new page, switch to the HTML editor, and copy the entire text from this GitHub gist:

Where it says “REPLACE THIS TEXT…”, you can add the text describing the assignment. The HTML div you see is where the headlines and excerpts will be added. Within the Javascript, you’ll want to replace the value for ‘tag’ with the slug of the tag you’ve agreed upon for the assignment. If there’s a value for that variable, the script knows to load the first post from each website with the specified tag. Otherwise, it will just load the most recent post.

Lastly, to have your first and last name appear before the title, you’ll need to update your profile information to include your first and last name. You can do so in the WordPress admin by going to “Users” -> “My Profile” and filling out the requisite fields.

Hit me with any questions you have in the comments.