WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Posts by the author (9 posts)

  1. albinas
    Member
    Posted 7 years ago #

    Ok , so in the end in every post there is written who did posted it:

    Posted by <b><?php the_author() ?></b>

    I want to make like this is the link and when you click on it, only that author posts are shown. I understood, that the URL of one of the authors is:

    .../index.php?author=34

    But what i have to do in a code to make that on every author name there would be a link to his posts ?

    thanks

  2. albinas
    Member
    Posted 7 years ago #

    anyone? :( i searched, did not find anything ...

  3. Chris_K
    Member
    Posted 7 years ago #

    Try <?php the_author_posts_link(); ?>

  4. albinas
    Member
    Posted 7 years ago #

    thanks - it worked !

    Ok,

    so i got another question related.

    How to make that when you click on an author all his posts are shown and in whatever place on a site there would be some info about him (i could write that info mannually) ?

    thnx

  5. Chris_K
    Member
    Posted 7 years ago #

    One option would be to look into Author_Templates. Also, search around there as this has been a somewhat common topic lately.

  6. albinas
    Member
    Posted 7 years ago #

    Hey,

    thanks for help, but i dont understand why did the wordpress made the author page to make by yourself and in such a difficult way? i dont understand nothing in that tutorial, because i have to do such a primitive job - make an every author page with a bit of info about them and all his posts, but in that tutorial there is so much things and for example, where i should to put all those php codes in my theme template? its not written there.

  7. albinas
    Member
    Posted 7 years ago #

    and maybe anyone could post an example of his author.php ?

  8. albinas
    Member
    Posted 7 years ago #

    hello,

    one more question with that author page: how to connect it to the whole wordpress system, how to make that when click on a author name it would gather information from author.php file ?

    Please, answer me this.

    Thank you.

  9. albinas
    Member
    Posted 7 years ago #

    problem is resolved. thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags