Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created March 20, 2012 21:36
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 billerickson/2141539 to your computer and use it in GitHub Desktop.
Save billerickson/2141539 to your computer and use it in GitHub Desktop.
<?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