Forums

[resolved] author archives as headlines (5 posts)

  1. Misterpayne112
    Member
    Posted 2 years ago #

    i have seen a few wordpress blogs and noticed that when you click on a author's link on some blogs, the author's archives show up as headlines instead of being in blog form... how do i do that?

    there were about 50 linked headlines with the "previous post" link at the bottom. is that some sort of plugin or is there a way to do it?

  2. MichaelH
    Volunteer
    Posted 2 years ago #

  3. Misterpayne112
    Member
    Posted 2 years ago #

    this is working well, thanks. this only shows like 12 posts, i want to show like 50 or 100 on one page with a next and previous link on the bottom. i dont know much about coding but this is what is on the page.

    <!-- 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 -->
  4. MichaelH
    Volunteer
    Posted 2 years ago #

    Before your loop there

    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts($query_string .'&showposts=50&paged='.$paged);
    ?>

    Look at the WordPress Default theme's index.php for examples of the previous/next_posts_link code.

  5. Misterpayne112
    Member
    Posted 2 years ago #

    Michael H, you are the man! You have helped me once again! thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic