Skip to content

Instantly share code, notes, and snippets.

View StewartJohn's full-sized avatar

John Stewart StewartJohn

View GitHub Profile
@StewartJohn
StewartJohn / postconnections.php
Last active October 20, 2015 21:02 — forked from billerickson/gist:1624373
Manually Curated Related Posts - Establish the Connection
<?php
/**
* Related Post Connection
* Forked from:
* @author Bill Erickson
* @link http://www.billerickson.net/manually-curated-related-posts/
*
* @uses Posts2Posts
* @link https://github.com/scribu/wp-posts-to-posts/wiki
@StewartJohn
StewartJohn / pug-bomb.php
Last active September 10, 2015 14:49 — forked from retgef/pug-bomb.php
Pug Bomb API Endpoint WordPress Plugin
<?php
/*
Plugin Name: Pug Bomb API Endpoint
Description: Adds an API endpoint at /api/pugs/$n_pugs
Version: 0.1
Author: Brian Fegter
Author URL: http://coderrr.com
*/
class Pugs_API_Endpoint{