Skip to content

Instantly share code, notes, and snippets.

View jeremyclark13's full-sized avatar

Jeremy Clark jeremyclark13

View GitHub Profile
@jeremyclark13
jeremyclark13 / customHeader34.php
Created April 8, 2012 02:42
Custom Header in WordPress 3.4
<?php
add_action( 'after_setup_theme', 'theme_setup' );
function theme_setup() {
global $wp_version;
//Compare wp_version to know which way to add custom header support
if (version_compare($wp_version, '3.4' , '>=')){
add_theme_support( 'custom-header', array(
// Header image default
'default-image' => get_template_directory_uri() . '/images/headers/header.jpg',
@jeremyclark13
jeremyclark13 / simple_forum_2_bbpress.php
Created April 5, 2012 12:50
Simple:Press forum to bbPress forum convertor
<?php
/*
Plugin Name: Simple Press to bbPress
Plugin URI: http://www.4-14.org.uk/
Description: Import Simple Press forums to bbPress
Author: Mark Barnes
Version: 0.1
Author URI: http://www.4-14.org.uk/
*/