Last active
December 18, 2015 23:59
-
-
Save makbeta/5865307 to your computer and use it in GitHub Desktop.
Updating post info line in Wordpress Genesis-based theme
This file contains hidden or 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 | |
// Put the following code in functions.php | |
//* Customize the post info function | |
add_filter( 'genesis_post_info', 'post_info_filter' ); | |
function post_info_filter($post_info) { | |
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]'; | |
return $post_info; | |
} | |
//* Remove the post info function | |
remove_action( 'genesis_before_post_content', 'genesis_post_info' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment