• Resolved edwardsdb

    (@edwardsdb)


    I’m trying to figure out how to get the author name to display on posts on my front page.

    Posts on my main page look like:

    Post Title
    filed in Category Name on Date

    I want to add: by Author Name after the date.

    Is this possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Funny, I was JUST about to ask this. I think it’s fairly simple, like

    <span="author">Posted by 'author'</span>

    or something loosely similar to that. I just wanna know instead of guessing. I bet there’s a theme I can just snatch it from…I’ll let you know.

    Dane

    Thread Starter edwardsdb

    (@edwardsdb)

    I figured it out, at least for my theme.

    I’m using BlackSplat 1.3

    In index.php, I added: by <?php the_author(); ?> in the section
    <div class="post">

    I figured this out on my own! ??

    I even guessed (and got lucky) on the variable name. The other variables were the_title, the_time, the_content, etc. ??

    Thanks for that tip.

    I too am using the BlackSplat theme, I cannot remember which version, but I have modified it.

    If you could post a link of your site I would appreciate looking at it.

    Here is my site with the modified BlackSplat theme: whoami-web.co.uk

    Shahan

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display Author on Posts’ is closed to new replies.