Author link not showing up on posts
-
I run a tech blog here and have been attempting to clear up some of the rough parts of the design. Unfortunately, there is one part that has been completely baffling me and I can’t seem to get resolved. So I thought I would reach out to the WordPress community ??
The author name (a link to my profile and most recent posts) isn’t showing up on the posts, yet as you can see at the link above, it is showing up on the archive and front pages just fine.
The only thing I can think of is it’s a problem with my CSS, which I’ve enclosed below.
#top-part {
float: left;
margin-left: 20px;
margin-right: 20px;
width: 97%;
}#byline{
display:inline-block;
margin-top:15px;
margin-bottom:20px;
line-height:1;
font-size:12px;
color: #888888;
}#byline .comment-count a{
overflow:hidden;
padding:3px;
text-align:center;
width:25px;
color: #ffffff;
background: #4e7411;
}#byline .comment-count a:hover{
overflow:hidden;
padding:3px;
text-align:center;
width:25px;
color: #ffffff;
background: #444;
}#byline .categories a{
line-height:1;
overflow:hidden;
padding:3px;
text-align:center;
color: #ffffff;
background: #444;
}#byline .categories a:hover{
line-height:1;
overflow:hidden;
padding:3px;
text-align:center;
color: #ffffff;
background: #4e7411;
}#byline .authorbyline{
line-height:1;
overflow:hidden;
padding:3px;
text-align:center;
}#byline .sep{
line-height:1;
overflow:hidden;
padding:3px;
text-align:center;
}My single posts page has the following code:
<div id="top-part"><div id="byline">
<span class="authorbyline"><i>By</i> <span class="vcard author"><span class="fn"><?php the_author_posts_link(); ?></span></span> <i>on <span class="date"><?php the_time('F j, Y'); ?></span></i></span>
<span class="sep"> | </span>
<span class="category"><span class="categories"><?php the_category(' '); ?></span></span>
<?php if ( comments_open() ) : ?>
<span class="sep"> | </span>
<span class="comments"><span class="comment-count"><?php comments_popup_link( __('0', 'magazine-basic'), __( '1', 'magazine-basic'), __('%', 'magazine-basic')); ?></span></span>
<?php endif; ?>
</div></div>
Thanks!
- The topic ‘Author link not showing up on posts’ is closed to new replies.