Skip to content

Instantly share code, notes, and snippets.

View jshakes's full-sized avatar

James Shakespeare jshakes

View GitHub Profile
@jshakes
jshakes / page-forgot-password.php
Created October 30, 2012 16:42
One-page WP password reset page (for themes with front-facing bespoke log-in)
<?php
/*
Lets you display a forgot/reset password page within your theme.
Eg, create a page called 'Forgot Password'; save this file as page-forgot-password.php
Adapted from code posted here: http://wordpress.stackexchange.com/questions/14692/check-for-correct-username-on-custom-login-form/14696#14696
*/
@jshakes
jshakes / gist:3966252
Created October 27, 2012 21:04
Author taxonomy
function register_taxonomies(){
register_taxonomy('author', array('post'),
array(
'labels' => array(
'name' => __( 'Authors' ),
'singular_name' => __( 'Author' )
),
'show_ui' => true,
'query_var' => true