Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created March 15, 2012 01:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/2040961 to your computer and use it in GitHub Desktop.
Save billerickson/2040961 to your computer and use it in GitHub Desktop.
Default term meta
<?php
/**
* Person Intro
* Displays "Photos of .. " name on term archive of people taxonomy
*
* @author Bill Erickson
* @link http://www.billerickson.net/overriding-options-and-meta
*
* @param string $headline
* @param object $term
* @return string $headline
*/
function be_person_intro( $headline, $term ) {
if( !is_tax( 'people' ) || !empty( $headline ) )
return $headline;
return 'Photos of ' . $term->name;
}
add_filter( 'genesis_term_meta_headline', 'be_person_intro', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment