How to Use Custom Post Types to Automatically Display Google Code Project Commits on Your WordPress Site

July 29, 2010  | 
1 Comment

This is a tutorial for developers who host projects with Google Code and blog with WordPress. Suppose you could create an automatically-updating archive of your SVN activity for a project you’re working on? The Google Code Commit Tracking plugin for WordPress 3.0 allows you to do just that!

Whenever you make an SVN commit on a Google Code project, you can instruct Google to send a notice to someplace else. This plugin enables WordPress to receive those notices and output them as an SVN Activity custom post type. You’ll be able to view them in a list under the SVN Activity custom post menu in your dashboard:

How to Link Your Google Code Project’s SVN Activity to Your WordPress Site

If you’re setting up your Google Code account for the first time, make sure to select SVN for your repository type if you plan to use this plugin.

  1. After installing Google Code Commit Tracking on your WordPress site, go to your Google Code account and copy the Post Commit Authentication Key from the Administer > Source.
  2. Paste into the Settings > Google Code options page.
  3. Copy the Post-Commit URL on the Config page into the Google Code Post-Commit URL field on Administer > Source.
  4. Then you can create a custom page template for the page where you want to display the updates and query the SVN post types using something like this:
    <?php query_posts( 'post_type=svn'); ?>

Now you have a page that will update automatically every time you commit, without you having to do a thing. This is especially useful if you are collaborating on a project with other developers or have a number of people interested in your project who don’t use Google Code. Importing your SVN activity as custom post types lets your site’s visitors to interact with your project by commenting on the updates and following via subscription. Keep everyone up to date with your project directly through your WordPress site!

Featured Plugin - Every great SEO tweak you need, in one snazzy bundle

Fully integrated with the SEOMoz API, complete with automatic links, sitemaps and SEO optimization of your WordPress setup - this is the only plugin you need to help you rank your site number 1 on Google - nothing else compares.
Find out more

Featured Plugin - Host sites, get paid, just like WordPress.com

If you've ever wondered how you could offer a paid site management and hosting service, then this is the plugin for you. Offer a freemium or paid service, for any niche you like, it's powered Edublogs.org to success already!
Find out more

Featured Plugin - Easily integrate your WordPress site with Facebook

Would you like to add Facebook comments, registration, 'Like' buttons and autoposting to your WP site? Well, The Ultimate Facebook plugin has got that all covered!
Find out more

Featured Plugin - Start Your Own Powerful Membership Site

If you're thinking about starting a paid, or just private, membership site then this is truly the plugin you've been looking for. Easy to use, massively configurable and ready to go out of the box!
Find out more

Featured Plugin - Send beautiful html email newsletters, from WordPress!

Now there's no need to pay for a third party service to sign up, manage and send beautiful email newsletters to your subscriber base - this plugin has got the lot.
Find out more

Featured Plugin - Add bottom corner (or anywhere else) chat to your site

No javascript required, no third part chat engine, just fully featured chat right in your own database on your own WP sites - couldn't be easier.
Find out more

Featured Plugin - WordPress + Google Maps = Perfect

Simply insert google maps into posts, sidebars and pages - show directions, streetview, provide image overlays and do it all from a simple button and comprehensive widget.
Find out more

Featured Plugin - Start your own Quora / StackOverflow / Yahoo Q&A site

It's now incredibly easy to start your own Q&A site using nothing more than WordPress - The Q&A plugin simply and brilliantly transforms any site, or page, into a perfect support or Q&A environment.
Find out more

Featured Plugin - Turn any WordPress page into a fully featured wiki!

To get a wiki up and running you used to need to install Mediawiki and toil away for days configuring it... not any more! This plugin gives you *all* the functionality you want from a wiki, in WordPress!!!
Find out more

One Response to How to Use Custom Post Types to Automatically Display Google Code Project Commits on Your WordPress Site

  1. Awesome usage of Custom post types and related to what I was doing yesterday. Pretty cool!

Click on a tab to select how you'd like to leave your comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

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>

Subscribe without commenting