Created
August 8, 2012 12:29
-
-
Save samikeijonen/3294777 to your computer and use it in GitHub Desktop.
Oxygen: filter byline remove , between categories
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
/* 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] · by [entry-author] · in [entry-terms taxonomy="category" separator=" "] [entry-edit-link before=" · "]', 'oxygen' ) . '</div>' ; | |
return $byline; | |
} | |
function my_byline_category( $byline ) { | |
$byline = '<div class="byline byline-cat">' . __( '[entry-terms taxonomy="category" separator=" "]', 'oxygen' ) . '</div>' ; | |
return $byline; | |
} |
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
/* 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] · by [entry-author] · in [entry-terms taxonomy="category" separator=" "] [entry-edit-link before=" · "]', '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