• Hi all, I really hate to be asking this because it seems that it’s been asked so many times (as I’ve discovered while searching for an answer).

    I am trying to get the post author names to display at the end of the posts. I am using WP 2.0.5 and the WP Default Theme (Kubrick). I have followed the directions on the codex page and also from several forum posts to simply “uncomment” the author portion this line..

    <small><?php the_time(‘F jS, Y’) ?><!– by <?php the_author() ?>–> </small>

    …in the “Presentation”–>”Theme Editor”–>”Main Index Theme” file.

    If this is correct, then why oh why is it not working for me? Can anyone offer any help?

    I am trying to display the post author’s nickname that they set up when registering.

    Thanks for any help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Adam W. Warner

    (@awarner20)

    The author names appear with the post after I deactivated the “Static Front Page” plugin from here… https://www.semiologic.com/software/static-front/

    Thread Starter Adam W. Warner

    (@awarner20)

    Showing author names does not work with this plugin activated. Can anyone offer any advice on how to work this with this plugin?

    I really like the static front page option;)

    Thread Starter Adam W. Warner

    (@awarner20)

    Ok, with the plugin deactivated, I entered this into my main template page above the loop… <?php
    query_posts(‘pagename=home’); //retrieves the about page only
    ?>

    You’ll notice I change it to say “home” as that’s what the page name is that I want to load first. That worked and showed the author name of the post on that page.

    However, when going to different category posts, the autor names still failed to show? Am I supposed to put the author name code into some other pages?

    Any advice is greatly appreciated:)

    Adam

    <!-- by <?php the_author() ?>-->

    Will not display the author name, because <!-- --> are HTML comments.

    Change it to by <?php the_author() ?> and it will appear.

    Thread Starter Adam W. Warner

    (@awarner20)

    LesBessant,

    That was the first thing I tried. It works if the Static-Front-Page plugin is not activated….but it does not work if that plugin is activated.(this is all stated in the above post;)

    Have you tried adding the_author() to the Page template (page.php, or the template you have assigned to the “front” Page)? I imagine Static Front Page cause WordPress to use that template (query_posts('pagename=home') will), rather than index.php.

    Thread Starter Adam W. Warner

    (@awarner20)

    I have tried adding the <?php the_author() ?> to the page.php template, no success:(

    ..and when you say “or assign to the template you have assigned to the “front” page, I want to make sure I understand what you mean….I created this page called “home” choosing the “main index template” on the right column during the creation of the page. I would assume then that this page; “home” is using the “main index template”. Am I corect?

    If so, then this is what I’ve done. I have added the <?php the_author() ?> to both the “index.php” and the “page.php” files (one at a time) and the author names are not showing after the posts..(except it shows the author name on the ONE post on the “home” page).

    So, here’s where I’m at right now…

    1. The Static-Home-Page plugin is deactivated.

    2. I have added this <?php
    query_posts(‘pagename=home’); to my “main index template” right above the loop.

    (this leaves me with the post’s author name ONLY SHOWING ON THE MAIN PAGE.)

    3. I tried adding the <?php the_author() ?> to the “page.php” file above the loop with no difference.

    I’m still in limbo on this. Is there no way to specify a main page and have the post’s author names show?

    Thread Starter Adam W. Warner

    (@awarner20)

    Can anyone offer any further advice on this? I still cannot get the author names to show on their posts.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Author Name Problem, have read documentation, still no show???’ is closed to new replies.