Created
January 5, 2017 04:56
-
-
Save WPprodigy/91e14c031193df8765b4003f7839b096 to your computer and use it in GitHub Desktop.
Add author and publish date to storefront pages underneath the title
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
add_action( 'storefront_page', 'wc_ninja_add_pages_byline', 11 ); | |
function wc_ninja_add_pages_byline() { | |
?> | |
<div class="author"> | |
<?php | |
echo '<span class="label">' . esc_attr( __( 'Written by', 'storefront' ) ) . ' </span>'; | |
the_author_posts_link(); | |
echo "<br>"; | |
storefront_posted_on(); | |
?> | |
</div> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment