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).
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.
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!
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(); ?>
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!