You must be logged in to post
Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Adding author name to posts

UserPost

9:36 pm
October 18, 2009


paradoxica

Member

posts 8

1

Ages ago, I needed to remove the author name from posts. There was no obvious way to do this from the customisation page, so I removed the line by editing the source files directly.

However, now I need to add the author name back but of course I do not know what I removed or where it was.

Could you tell me what I need to put back in and where I do it?

Thanks.

4:57 pm
October 21, 2009


paradoxica

Member

posts 8

2

Anyone here? forum's been very quiet…

6:54 am
October 22, 2009


Ryan

Admin

posts 1523

3

Are you using Flexibility 2 or FlexSqueeze? I'm assuming Flex2 since your thread is in that forum. If you need to add in the author name, you can add it into the main posts page (index.php) or the individual post page (single.php). Either way, look for this code:

<div class="postdate"><?php the_time('l, F jS, Y') ?> at <?php the_time() ?>

Change it to:

<div class="postdate"><?php the_time('l, F jS, Y') ?> at<?php the_time() ?> by <?php the_author(); ?>

10:25 am
December 12, 2009


yuri21

New Member

posts 2

4

Hmmm… Ryan, would you mind reposting the "code" or "pictures"? Somehow, it's not showing up at all. :)

Thank you! :)

7:41 pm
March 5, 2010


aashland

Member

posts 12

5

Ryan, I, too, can't see the images you inserted in your post. Can you show me where to insert that the_author('firstname') code? I want to make the author name appear on posts. Thanks!

12:33 pm
March 8, 2010


Ryan

Admin

posts 1523

6

Sorry, didn't realize the code got rendered as code, not text Yell

6:08 pm
March 8, 2010


aashland

Member

posts 12

7

Thanks, Ryan! I appreciate all your help. I think all my questions have been answered now and I won't need to bother you anymore. :-)