• Resolved girsanime

    (@girsanime)


    On my blog it doesn’t show the author of the post. Is is just because there’s only one user? Or is there an option I have to change? I’m wondering because I’m going to add my friend as an author and I want people to know who writes what. Please help.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter girsanime

    (@girsanime)

    If it helps I’m using the fspring theme.

    You need to add the author template tag:
    http://codex.wordpress.org/Template_Tags/the_author
    to your template file(s).

    Thread Starter girsanime

    (@girsanime)

    Where do I put it exactly to get it for just my blog posts?

    Well, open the template files from the default and classic and study where they have it.
    It all depends on where YOU want it to appear.

    Thread Starter girsanime

    (@girsanime)

    So let’s say I want it to be at the start of all posts in th blog. Where would I put it? Also, how would I make the code say, “by *insert author*” and also has a link to the author’s profile or other such thing?

    Open the index.php file of your theme in a plain text editor (like Notepad) and find the template tags that display the dtae/time and category. Add it sdomewhere in that area.

    And just a note: in the four minutes between my post and yours you could NOT possibly do what I have suggested. If you get instructions what to do: do it before posting back!

    Thread Starter girsanime

    (@girsanime)

    I did test it once in my blog but the test merely said “GIR-kun”. It didn’t say “post by GIR-kun” or even “by GIR-kun” it just said “GIR-kun”. The text was also not hyperlinked.

    Forget the hyperlink. That’s another issue. You can read and find what you want in that regard:
    http://codex.wordpress.org/Template_Tags#Author_tags

    You can add whatever you want to the template tag:
    posted by <?php the_author(); ?>
    or
    by <?php the_author(); ?>
    or
    written by <?php the_author(); ?>

    Thread Starter girsanime

    (@girsanime)

    Thank you. I found what I was looking for.

    My template file only read this:
    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    require(‘./wp-blog-header.php’);
    ?>

    So I have no idea where to put the:
    <p>This post was written by <?php the_author(); ?></p>

    Any specific advice?

    TIA!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Show author’ is closed to new replies.