Skip to content

Instantly share code, notes, and snippets.

@samikeijonen
Created August 8, 2012 12:29
Show Gist options
  • Save samikeijonen/3294777 to your computer and use it in GitHub Desktop.
Save samikeijonen/3294777 to your computer and use it in GitHub Desktop.
Oxygen: filter byline remove , between categories
/* Filter bylines. */
add_filter( 'oxygen_byline', 'my_byline' );
add_filter( 'oxygen_byline_category', 'my_byline_category' );
function my_byline( $byline ) {
$byline = '<div class="byline">' . __( '[entry-published] &middot; by [entry-author] &middot; in [entry-terms taxonomy="category" separator=" "] [entry-edit-link before=" &middot; "]', 'oxygen' ) . '</div>' ;
return $byline;
}
function my_byline_category( $byline ) {
$byline = '<div class="byline byline-cat">' . __( '[entry-terms taxonomy="category" separator=" "]', 'oxygen' ) . '</div>' ;
return $byline;
}
/* Filter bylines. */
add_filter( 'oxygen_byline', 'my_byline' );
add_filter( 'oxygen_byline_category', 'my_byline_category' );
function my_byline( $byline ) {
$byline = '<div class="byline">' . __( '[entry-published] &middot; by [entry-author] &middot; in [entry-terms taxonomy="category" separator=" "] [entry-edit-link before=" &middot; "]', 'oxygen' ) . '</div>' ;
return $byline;
}
function my_byline_category( $byline ) {
$byline = '<div class="byline byline-cat">' . __( '[entry-terms taxonomy="category" separator=" "]', 'oxygen' ) . '</div>' ;
return $byline;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment