• Resolved astpaul

    (@astpaul)


    Hi

    I am trying to list more than 5 posts after the author name in this page http://2c5.3db.myftpupload.com/author/roxana/

    The code that I currently use is

    <h2>Posts by <?php echo $curauth->nickname; ?>:</h2>
    				<ul>
    					<!– The Loop –>
    					<?php
    					if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    					<li>
    					<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
    					<?php the_title(); ?></a>,
    					<?php the_time('d M Y'); ?> in <?php the_category(' & ');?>
    					</li>
    					<?php endwhile; else: ?>
    					<p><?php _e('No posts by this author.'); ?></p>
    					<?php endif; ?>
    					<!– End Loop –>
    				</ul>

    Could someone guide me in the right direction? Thank you 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Go to the Settings->Reading page. You should be able to change the default number of posts displayed here.

    Thread Starter astpaul

    (@astpaul)

    I went there but the limit is set to 10 and not 5. Anyway I would like to display 100+ if possible.
    Any way to do that?

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Ahh. Okay, if the number there is different than what that page displays, then it’s probable that your theme is overriding that value and either has its own setting for it somewhere, or has it hardcoded into the theme.

    You’ll need to ask your theme author how to do it properly.

    Thread Starter astpaul

    (@astpaul)

    Thanks a lot. the answer was to add:
    query_posts('posts_per_page=100'); before the Loop

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Listing more than 5 posts after author's name’ is closed to new replies.