• It took me over a half hour of searching and playing to find this. It seems to be little known as not many WordPress sites are using it, so i’ll put it here.

    This takes that “posted by authorname” text on your blog page and changes the authorname to a link. When you click the link it lists all the posts by that author.

    Change

    <div class=”meta”><?php _e(“Filed under:”); ?> <?php the_category() ?> —
    <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>

    To

    <div class=”meta”><?php _e(“Filed under:”); ?> <?php the_category() ?> —
    <?php the_author_posts_link(); ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>

    The only change is in that fourth tag, and mind the semicolon.

    You can do this manually with http://www.whatever.com/blog/index.php?author=3

    eh voila.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘easy sort by author’ is closed to new replies.