display author’s name on post
-
Sorry, I’m a newbie. I have read the codex “Template Tags/the author”, “The Loop in Action” and “The Loop”.
So I went into my C-panel, opened the wordpress directory, and opened the index.php file to edit it, thinking to simply insert
<?php the_author(idmode='', echo); ?>
into the loop.But this is what I found in the index.php file:
<?php
/* Short and sweet */
define('WP_USE_THEMES', true);
require('./wp-blog-header.php');
?>So where is The Loop?? Help! I tried opening up the file wp-blog-header.php to see if somehow or other The Loop was there, but I couldn’t at all find the line
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
nor even the line<?php endwhile; else: ?>
I want to display the author’s nickname on every post, because this blog has a number of authors, and every one of us is just too lazy to type our names beneath the titles.
Thanks in advance.–D. Chan
I’m using the theme Georgia.
- The topic ‘display author’s name on post’ is closed to new replies.