Created
March 15, 2012 01:12
-
-
Save billerickson/2040961 to your computer and use it in GitHub Desktop.
Default term meta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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