Last active
March 7, 2019 20:27
-
-
Save braddalton/5542710 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
add_filter( 'genesis_post_info', 'remove_post_info_exclude_news_category' ); | |
/** | |
* @author Brad Dalton | |
* @link http://wpsites.net/web-design/modify-post-info-genesis | |
*/ | |
function remove_post_info_exclude_news_category($post_info) { | |
if ( in_category('news') ) { | |
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]'; | |
return $post_info; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment