Skip to content

Instantly share code, notes, and snippets.

@braddalton
Last active September 29, 2022 09:25
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 braddalton/196a1a1073b3612d5df129ecb5aa1d5c to your computer and use it in GitHub Desktop.
Save braddalton/196a1a1073b3612d5df129ecb5aa1d5c to your computer and use it in GitHub Desktop.
Remove post date (entry-time) sitewide and (comments-link) on homepage - Genesis https://wpsites.net/?p=110841
add_filter( 'genesis_post_info', 'your_post_info_filter' );
function your_post_info_filter($post_info) {
$front = 'by [post_author_posts_link] [post_edit]';
$post_info = 'by [post_author_posts_link] [post_comments] [post_edit]';
$output = is_front_page() ? $front : $post_info;
return $output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment