WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] why does my author page display only 9 posts? (5 posts)

  1. ghmercado
    Member
    Posted 6 years ago #

    hi my author page is only showing the author's latest 9 posts. I want it to show all the author's posts.

    here is author.php:

    <?php get_header(); ?>
    <div id="content">
    <div id="leftcol">
    <!-- This sets the $curauth variable -->
    <?php
    if(isset($_GET['author_name'])) :
    $curauth = get_userdatabylogin($author_name);
    else :
    $curauth = get_userdata(intval($author));
    endif;
    ?>

    <h2>Posts by <?php echo $curauth->nickname; ?>:</h2>

    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    any idea why? Thank you in advance!

  2. Kafkaesqui

    Posted 6 years ago #

    How many posts per page are you set to display under Options > Reading, Blog Pages? Looking at your blog, it appears to be... nine.

    If you need to display all posts on only author pages, check out this plugin:

    http://www.transycan.net/blogtest/2007/10/30/custom-query-string-reloaded-for-wordpress-23-with-tag-support/

  3. ghmercado
    Member
    Posted 6 years ago #

    kafkaesque, i congratulate you on your patience for answering dumb*ss questions like mine. Thanks much.

  4. Kafkaesqui

    Posted 6 years ago #

    The only dumb*ss question is the one that isn't asked. You're welcome.

  5. Annys
    Member
    Posted 6 years ago #

    I'm having the same problem. I don't want to change the options and I'm using wp 2.2.3 so I can't use the plugin. Is there a solution so you can see all the posts by an author in this file?

    PS: I'm not a php expert... ;-)

    Annys

Topic Closed

This topic has been closed to new replies.

About this Topic