Skip to content

Instantly share code, notes, and snippets.

@TacoSteemers
Last active December 16, 2015 04:38
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 TacoSteemers/5378038 to your computer and use it in GitHub Desktop.
Save TacoSteemers/5378038 to your computer and use it in GitHub Desktop.
Adding author name/link to WP Vintage Camera theme. content.php for main page, and content-single.php for the one post view
Just before the tags:
...
<footer class="entry-meta">
<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
<span>Written by: <?php the_author_link(); ?></span>
...
or just before the date:
<div class="entry-meta">
<?php vintage_camera_posted_on(); ?>
<span style="float: right;">
Written by <?php the_author_link(); ?>
</span>
</div><!-- .entry-meta -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment