Skip to content

Instantly share code, notes, and snippets.

View mannieschumpert's full-sized avatar

Mannie Schumpert mannieschumpert

View GitHub Profile
@mannieschumpert
mannieschumpert / gist:3269678
Created August 6, 2012 03:32
"Add More Wow" via Dan Cederholm at Build 2010
/* The next time you hear "needs more wow," add this to the stylesheet.
- Dan Cederholm at Build Conference 2010 https://vimeo.com/17091905 */
*:hover {
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
-o-transform: rotate(180deg);
transform: rotate(180deg);
}
@mannieschumpert
mannieschumpert / gist:3135852
Created July 18, 2012 12:13
WordPress: Get Author Bio by ID
// the number is the author ID
<?php $author = get_userdata(2); echo $author->user_description; ?>
@mannieschumpert
mannieschumpert / gist:3109226
Created July 14, 2012 04:38
WordPress: Custom Taxonomy
<?php
// Create *_ taxonomy
add_action( 'init', 'create_TAXONOMYNAME' );
function create_TAXONOMYNAME() {
$labels = array(
'name' => _x( 'PLURAL', 'taxonomy general name' ),
'singular_name' => _x( 'SINGULAR', 'taxonomy singular name' ),
'search_items' => __( 'Search PLURAL' ),
'all_items' => __( 'All PLURAL' ),
'parent_item' => __( 'Parent SINGULAR' ),