WordPress.org

Ready to get started?Download WordPress

Forums

Show Posts By Author problem. (5 posts)

  1. domanico
    Member
    Posted 7 years ago #

    my blog is a portfolio that shows 1 post per page. i have a link that shows all posts by author (as a means to simply "show all posts"), but when i click it, it loads a blank template page with no results. what template page is it looking for? i would like it to use the same template as my categories (category.php).

  2. moshu
    Member
    Posted 7 years ago #

  3. domanico
    Member
    Posted 7 years ago #

    okay, that helps, but i dont know why my link is bringing up a blank page. this is what im using:

    <a href="author.php?author=<?php the_author_ID(); ?>">View all
    posts by <?php the_author_nickname(); ?></a>

    all my posts are by the same author-so i should be getting a bunch of results

  4. moshu
    Member
    Posted 7 years ago #

    I don't know, sorry. Never used that template.
    However, you can find a lot of info here:
    http://codex.wordpress.org/Author_Templates
    Please, pay special attention to the Resources at the bottom!

  5. fembat
    Member
    Posted 7 years ago #

    Have you tried the following?

    <?php the_author_posts_link() ?>

Topic Closed

This topic has been closed to new replies.

About this Topic