WordPress Social Network Aggregation

I really like the idea of a Tumblog – and even have one on Tumblr.com – but I don’t promote it anywhere. Conceptually it’s great – but I don’t like not having control over my content.

What I would really like is to have a site that I can design and control entirely… I also want to be able to automate everything. Automation is brilliant – I use it wherever possible. My goal is to pull the content in from all my different social networks, blogs, and websites and then share it in a single location.

I already have a personal site on my name domain – bengillbanks.co.uk – and this is where I see the new site living.

Social Network Aggregation

Social Network Aggregation

WPReader

Recently I noticed a website called WPReader was tweeting my articles. When I checked out the website I saw that it was a bookmarking site that collates posts from prominent WordPress sites and posts (and tweets) the links. I could see it was done automatically, and it was clearly a WordPress site, so I contacted the author of the site and got talking to him.

Anton turned out to be a really helpful developer who also lives in the South of England (clearly the best place to live! :)). We had a little chat and he sent me some code showing how WPReader worked. The code was a standalone script and I wanted to create something that worked as a plugin that could be used in themes – so I developed a very quick prototype.

Content Aggregation

So, what I have done is created a really simple WordPress plugin that lets me add some websites to aggregate content from and then sit back and watch my site update.

What the plugin does is use custom WordPress post types to store the sites that are to be aggregated from. I then make use of the WordPress cron to update the site once an hour – creating a new post each time new content is found in the feed. To ease load on my server I don’t check all the websites all the time – most sites don’t update hourly anyway.

To improve things further I added hooks so that other themes and plugins can sit on top of the aggregation plugin. I also added things I called modifiers. These modify the website content differently for each website. For instance I have a Youtube modifier – and this converts the post format to Video so that, if you have a theme that supports custom post formats the post will be displayed as a video. I’m going to be creating a set of default modifiers for popular sites, and can extend them inside themes as well.

Content Aggregation in Action

To test I have added support for the content aggregation plugin to the Nominate WordPress theme. I then set the plugin up on WPVote.com so that new content can be posted automatically from a group of websites I select.

I have been running the plugin on WPVote.com for a couple of weeks now and it’s been working really well. I see a few things I’d like to add to improve it – content filters being a big addition (to make things more relevant) but overall I’m really pleased with how it’s looking.

Next up I want to get back to my social aggregation theme for bengillbanks.co.uk. I have a design mocked up and am now putting it together – hopefully it will be live in the next week or two.

Was it good/ useful/ a load of old rubbish? Let me know on Mastodon, or BlueSky (or Twitter X if you must).

Link to this page

Thanks for reading. I'd really appreciate it if you'd link to this page if you mention it in your newsletter or on your blog.

WordPress News

The latest WordPress updates from the WPBriefs Podcast.

Related Posts

01 Apr 2015

The State of WordPress Themes #wcldn

I recently spoke on a panel at WordCamp London 2015e. Lance – who used to be the Theme Team lead at WordPress.com – asked me if I wanted to speak on a panel with him at WordCamp London 2015. I’ve...
20 Feb 2013

The Amazing Art of Flipping Websites

Recently I have looked at expanding my internet empire. I have all sorts of ideas and never enough time – so I thought I would see if I could buy some websites relatively cheaply, improve them, and then either flip...
27 May 2013

WordPress: 10 Years Young, What Does The Future Hold?

WordPress is now 10 years old. I started using wordpress 9 years ago – which means I joined the WordPress community early on. The reason I chose WordPress is simply because of the fabled 5 minute install process – I...
13 Oct 2016

Lessons Learned from 20 Theme Releases on WordPress.com

In 2007 I partnered with Darren Hoyt to release Mimbo Pro, one of the earliest premium WordPress themes. In 2012 Mimbo Pro was published on wordpress.com. Last week – on October 5th 2016 to be precise – my 20th theme...