How to add “Posted by ‘author'” at the top of the post content
-
Hi there, everyone.
I’m using the “StudioPress Green Theme” on my blog and it doesn’t display the text “Posted by ‘author name'” at the top of the entry. I have tried adding the
<?php the_author(); ?>
tag, but didn’t get any results.The code for my index.php is as follows:
<?php get_header(); ?> <div id="contentwrapper"><div id="content"> <div class="adsense_top"><?php include (TEMPLATEPATH . '/adsense_top.php'); ?></div> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post"> <h2 class="postTitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <div class="postMeta"> <span class="date"><?php the_time('M.d, Y') ?></span> in <span class="filed"><?php the_category(', '); ?></span> </div> <div class="postContent"><?php the_content('[Read the rest of this entry...]'); ?></div> <p class="comments"><?php comments_popup_link('Leave a Comment', 'Comments (1)', 'Comments (%)'); ?> </div> <!-- Closes Post --> <?php endwhile; ?> <?php else : ?> <div class="post"> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here. </div> <!-- Closes Post --> <?php endif; ?> <div id="nextprevious"> <div class="left"><?php posts_nav_link('','','« previous entries') ?> </div> <div class="right"><?php posts_nav_link('','next entries »','') ?></div> </div> </div></div> <!-- Closes Content --> <?php get_sidebar(); ?> <div class="cleared"></div> </div> <!-- Closes Main --> <?php get_footer(); ?>
The address is https://www.blog.pakfellows.com. I would be extremely grateful if anyone were to help me out as to where do I need to make changes and in which files.
Thanks a ton!
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘How to add “Posted by ‘author'” at the top of the post content’ is closed to new replies.