Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Last active October 28, 2015 01:53
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 reasonstousegenesis/d204dade81a4e253fad5 to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/d204dade81a4e253fad5 to your computer and use it in GitHub Desktop.
Display the publish year after the content
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Display the publish year after the content
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/publish-date/
*/
add_filter( 'genesis_post_meta', 'rtug_publish_year' );
function rtug_publish_year() {
return 'Published in [post_date format="Y"]';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment