Forums

posting credit (12 posts)

  1. hhsleep
    Member
    Posted 1 year ago #

    hi, new to wordpress. thanks in advance.

    we have mulitiple people who post on our blog but it doesn't show the username of the person posting. so, basically anyone reading the blog doesn't know who posted what. is there a easy way to solve this?

    i'm using WordPress Default 1.6 theme

  2. mercime
    Member
    Posted 1 year ago #

    You need to add author tag and style accordingly
    http://codex.wordpress.org/Template_Tags/the_author
    <p>This post was written by <?php the_author(); ?></p>

    You could also create an Author Page and add this in your single.php and/or index.php and/or archive.php plus style accordingly
    <p>Written/Posted by: <?php the_author_posts_link(); ?></p>

  3. hhsleep
    Member
    Posted 1 year ago #

    Thanks for quick reply and your time. Sorry i'm new to this but to clarify.

    <p>This post was written by <?php the_author(); ?></p>

    That will automatically list somewhere on my post to show the author?

    Where do I put it? If I have to put it in my HTML that would mean I might as well just type in "This post is written by author" manullay everytime right?

    I would like people to be able to click on that author's name and have it lead to a profile of the author as well.

  4. whooami
    Member
    Posted 1 year ago #

    You were given a link in the post.

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

    If you click it, and read it -- it explains that that needs to be used in the_loop

    READ. Please.

  5. hhsleep
    Member
    Posted 1 year ago #

    I actually did try to read that but my brain felt like it was gonna explode. But perhaps if I can't understand it, I have no business using wordpress. I will spend more time reading over it and if I still can't figure it out I will be back.

    Thanks.

  6. moshu
    Member
    Posted 1 year ago #

    In the default theme is there - it's just commented out.
    Remove the <!--... --> from around it.

  7. whooami
    Member
    Posted 1 year ago #

    i'm using WordPress Default 1.6 theme

    ....

    In the default theme is there - it's just commented out.
    Remove the <!--... --> from around it.

    yah, thats my bad -- I missed that, or would have just said. my apologies.

  8. hhsleep
    Member
    Posted 1 year ago #

    cool so there is easier way.

    i looked in the single post (single.php) file in the theme editor and found this.

    <p class="postmetadata alt">
    <small>
    This entry was posted
    <?php /* This is commented, because it requires a little adjusting sometimes.
    You'll need to download this plugin, and follow the instructions:
    http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */

    Not sure what to remove??? Or do i need that plugin like it says?

    Thanks.

  9. mercime
    Member
    Posted 1 year ago #

    My bad as well, uncomment in index.php and you can add the author link in single.php

    <h2>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h2>
    <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>

    to

    <h2>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h2>
    <small><?php the_time('F jS, Y') ?> by <?php the_author() ?> </small>

  10. hhsleep
    Member
    Posted 1 year ago #

    I changed from

    <h2>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h2>
    <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>

    to this

    <h2>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h2>
    <small><?php the_time('F jS, Y') ?> by <?php the_author() ?> </small>

    in my index.php but it still doesn't work? will it be retroactive to previous posts or just work for new posts. because i tried a new post that was unpublished and looked at the preview and there was still no author...

    do i have to do something in the single.php as well?

    thanks guys.

  11. hhsleep
    Member
    Posted 1 year ago #

    ooh... it worked when i changed my index.php

    thanks guys.

    i'm pretty happy with this for now, but is there a way where when i click on the author it brings you to another page with his profile?

  12. Dgold
    Member
    Posted 1 year ago #

    Yeah, now you need to go back to the earlier suggestions in this thread, and follow that link for the Author Templates:
    http://codex.wordpress.org/Author_Templates

    you can basically copy your index.php and rename it, to be an author template.

    what mercime said,

    You could also create an Author Page and add this in your single.php and/or index.php and/or archive.php plus style accordingly
    <p>Written/Posted by: <?php the_author_posts_link(); ?></p>

Topic Closed

This topic has been closed to new replies.

About this Topic