WordPress.org

Ready to get started?Download WordPress

Forums

how to display post author on a blog? (8 posts)

  1. HustleTurtle
    Member
    Posted 8 years ago #

    hello
    please if someone can help on this:
    how to display post author on a blog?

    cheers,
    turtle

  2. citeewurkor
    Member
    Posted 8 years ago #

    add this to your index.php and single.php in your theme's template files wherever you want it to show up.
    <?php the_author()

    for example it looks like this in my index.php
    <div class="post"> <!--div post starts-->
    <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a>" rel="bookmark"><?php the_title(); ?></a></h3>
    <div class="meta"><?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php// the_author() ?> <?php the_time('F j, Y @ g:i a'); ?> <strong>by <?php the_author() ?></strong> <?php edit_post_link(__('Edit This')); ?></div>

  3. HustleTurtle
    Member
    Posted 8 years ago #

    wow
    thanks
    im still confuse since i dunno too much php
    i forgot to tell you i want it like blogger do
    posted by author name and the time

    time is also important
    cheers

  4. HustleTurtle
    Member
    Posted 8 years ago #

    this is whats in there:
    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    nothing more nothing less
    did you mean to paste what you have there?

    cheers

  5. citeewurkor
    Member
    Posted 8 years ago #

    On your dashboard, click "presentation" and then theme editor. Remember to BACK UP your files first!
    this is where you can edit your theme's template files to add the author into the posts. The time is usually already there. I've never used the default theme with WordPress, so I'm not sure exactly how that particular theme is set up.
    I'm sorry, I'm not familiar with how blogger sets their stuff up.
    Patience is the key. I'm no expert in PHP, but I had to learn a little to modify WP to how I wanted it to look.

  6. You'll need to edit your theme:

    http://codex.wordpress.org/Using_Themes

    And more info on the function you want:

    http://codex.wordpress.org/Template_Tags/the_author

  7. HustleTurtle
    Member
    Posted 8 years ago #

    dude this support its awesome
    i have never been to a support like this!
    thanks all!

    oh by the way im so noob i need to press F5 to view the replies =(
    what rss reader can i use for keeping track?
    is there a popular one?

  8. If you use Firefox (Opera too I think), it has a built in RSS reader. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags