Skip to content

Instantly share code, notes, and snippets.

@makbeta
Last active December 18, 2015 23:59
Show Gist options
  • Save makbeta/5865307 to your computer and use it in GitHub Desktop.
Save makbeta/5865307 to your computer and use it in GitHub Desktop.
Updating post info line in Wordpress Genesis-based theme
<?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