Skip to content

Instantly share code, notes, and snippets.

View jacobwise's full-sized avatar

Jacob Wise jacobwise

View GitHub Profile
@jacobwise
jacobwise / Genesis Custom Taxonomy Shortcode
Last active August 29, 2015 14:01
Creates a shortcode called 'post_custom_tax' that accepts a custom taxonomy as a variable
<?php
add_shortcode( 'post_custom_tax', 'jw_post_custom_taxonomy_shortcode' );
/**
* Produces the custom taxonomy terms links list.
*
* Supported shortcode attributes are:
* taxonomy (taxonomy to list, default is category),
* after (output after link, default is empty string),
* before (output before links, default is 'Filed Under: '),
@jacobwise
jacobwise / Genesis Move Entry Header
Last active August 29, 2015 14:01
Removes the Genesis entry header from the front page and moves it outside of the entry on all other pages.
//* Remove the entry header markup (requires HTML5 theme support)
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
//* Remove the entry title (requires HTML5 theme support)
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
//* Add the entry header markup and entry title before the content on all pages except the front page
add_action( 'genesis_before_content', 'jw_add_entry_header' );
function jw_add_entry_header()