Support » Your WordPress » Author Name is Not Posting with Post

  • I have a new WP 2.0 installation and when I originate a post, my name does not post with the article. I have gone through probably every menu option and sub-menu option and cannot figure out what the problem is.

    I have seen other blogs that post the name of the original author of a posted article, so, I know this exists. Anyone got any ideas as to what the problem might be?

Viewing 13 replies - 1 through 13 (of 13 total)
  • check for this <?php the_author() ?> in your template

    Thread Starter bsimon

    (@bsimon)

    Thank you for that…by the way, I’m just a user of this blog stuff, so, may I ask what the file name that PHP snippet should be in? And, if it’s not there, where do I place it?

    Thread Starter bsimon

    (@bsimon)

    Okay..wait…I went to that file…and that code is in it.

    Next idea?

    Does it look lik this <!– by <?php the_author() ?> –>

    if so remove this <! and –>

    Thread Starter bsimon

    (@bsimon)

    Bingo! That is exactly how it looks! Thanks!

    Hi bsimon, hope you dont mind im borrowing your thread since i roughly have the same problem as yours.
    I’m using wordpress 1.5.2 (havent upgrade yet) and the theme “almost spring” by becca wei. I have the same problem as bsimon in which the author name is not display (have multiple author) and i’ve tried to add this

    <?php the_author(‘idmode’, echo); ?>

    but by doing that, somehow the blog cannot be display when i preview it.

    i also look for <!– by <?php the_author() ?> –> to remove the <!– –> but i cant find it. can someone help me?

    help help

    HI,

    I’m experiancing the author issue also, can you give me the exact name of the template file?

    Regards, Nicolas

    If you have multiple authors or just want your name to appear as the author, you must modify the template you are using if your name doesn’t already show up when you publish. To fix this, do the following:
    Log into WordPress and choose the Presentation link, then with your particular theme selected you go to the Theme Editor button.
    Now, you have to click on the Main Index Template link on the right under “theme files” and bring up the code.
    Somewhere fairly close to the top (maybe 5 or 6 lines down you should put:

    <small><?php the_time('l, F j, Y') ?> by <?php the_author() ?></small> .

    The first part will put in the date of your post and the second part will use the name of the author that is logged in at the time of the post.
    You can see this in action at our blog, at http://www.artondisk.com Hope this helps.

    hi nicholas, im using the template “almost spring” it is available at the “extend” page here.

    computerfriend : be my friend too 🙂 anyway, i’ve tried the codes u gave, somehow it shows only the blog time, but still no author

    it shows like this

    “January 17, 2006 at 9:21 am by “

    still no author, for your information i notice that index file got something similar with the author thing

    <?php } elseif (is_author()) { ?>
    <h2><?php _e(‘Author Archive’); ?></h2>

    it shows like that. in fact most of the codes are not using “the_date” or “the_author” , only “is_date” “is_author”

    im very new with this 🙂

    here are some of the codes

    <?php if (is_category()) { ?>
    <h2><?php _e(‘Archive for’); ?> <?php echo single_cat_title(); ?></h2>

    <?php } elseif (is_day()) { ?>
    <h2><?php _e(‘Archive for’); ?> <?php the_time(‘F j, Y’); ?></h2>

    <?php } elseif (is_month()) { ?>
    <h2><?php _e(‘Archive for’); ?> <?php the_time(‘F, Y’); ?></h2>

    <?php } elseif (is_year()) { ?>
    <h2><?php _e(‘Archive for’); ?> <?php the_time(‘Y’); ?></h2>

    <?php } elseif (is_author()) { ?>
    <h2><?php _e(‘Author Archive’); ?></h2>

    help help

    <?php the_author('idmode', echo); ?>
    This is just a “generic” example – the parameters should be replaced by real ones.
    However, just using <?php the_author(); ?> should work.

    It has to be inserted in the template file (index, single, archive) where you want it to appear: usually it is somewhere under the post title.
    Open the index.php of the Classic theme and see how it is done there.

    ah, okay! when i compare it with the classic theme then i know how it works! thank you moshu! thank you computerfriend!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Author Name is Not Posting with Post’ is closed to new replies.