Skip to content

Instantly share code, notes, and snippets.

@davechu
Last active August 29, 2015 14:02
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 davechu/cc88feddaea96b3efc60 to your computer and use it in GitHub Desktop.
Save davechu/cc88feddaea96b3efc60 to your computer and use it in GitHub Desktop.
These show the functions.php code before and after changes.
/** original code (don't copy this part) **/
if ( is_post_type_archive( 'staff' ) || is_singular( 'staff' ) || is_tax('staff-position') )
$post_meta = '[post_terms taxonomy="staff-position" before="Position: "]<br/>[post_tags before="Tagged With: "]';
/** this is the after (edited) code. be careful, watch the brackets! **/
if ( is_post_type_archive( 'staff' ) || is_singular( 'staff' ) || is_tax('staff-position') ) {
$post_meta = '[post_terms taxonomy="staff-position" before="Position: "]<br/>[post_tags before="Tagged With: "]';
add_filter( 'genesis_link_post_title', '__return_false' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment