Created
March 20, 2012 21:36
-
-
Save billerickson/2141539 to your computer and use it in GitHub Desktop.
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 | |
add_filter('genesis_post_meta', 'be_post_meta_filter'); | |
/** | |
* Modify Post Meta | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/code/genesis-post-meta | |
* @link http://www.studiopress.com/tutorials/shortcode-reference | |
* | |
* @param string original post meta | |
* @return string modified post meta | |
*/ | |
function be_post_meta_filter($post_meta) { | |
if( is_single() ) | |
$post_meta = '[post_categories] [post_tags]'; | |
else | |
$post_meta = '[post_categories before=""] [post_tags before=""] | |
return $post_meta; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment