Skip to content

Instantly share code, notes, and snippets.

@jasonabney
jasonabney / Function Template Chooser
Last active August 29, 2015 14:22
Kellen Genesis Theme
/**
* Return Archive Section
* @author Bill Erickson
* @link http://www.billerickson.net/code/helper-function-for-template-include-and-body-class/
*
* @param null
* @return string
*/
function be_return_archive_section() {
if( is_post_type_archive( 'kellen_clients' ) || is_tax( 'client_category' ) )
@jasonabney
jasonabney / be template chooser
Created May 27, 2015 12:44
Kellen Clients Custom Post Type & Taxonomy
/**
* Return Archive Section
* @author Bill Erickson
* @link http://www.billerickson.net/code/helper-function-for-template-include-and-body-class/
*
* @param null
* @return string
*/
function be_return_archive_section() {
if( is_post_type_archive( 'kellen_clients' ) || is_tax( 'client_category' ) )