List users posts in new template page (4 posts)

  1. silfver
    Posted 8 years ago #

    I've created a template page called test.php. It looks like this:

    Template Name: Test
    <?php get_header(); ?>
    <p>All posts by user Test:</p>
    <?php get_sidebar(); ?>
    <hr id=\"last\" />
    <?php get_footer(); ?>

    I want to list the five latest post that the user Test has made. And I want it to look like it does on my frontpage, with a header, read more-tag and all that.

    I've searched by ass off in search for an answer, but I've just found broken links and none working plugins.

    How can I display the posts?

  2. silfver
    Posted 8 years ago #

    Is it even possible? Maybe a plugin can help? Hm...

  3. Chris_K
    Posted 8 years ago #

    Lots of good stuff on the Author_Templates page.

  4. silfver
    Posted 8 years ago #

    Thanks, but I don't really understand that page.

    Where does it say how to put a users posts (with header and content) in a separete template that I've created? (In my case test.php.)

    I don't want a list of the entries, I want them to be displayed like it does on the frontpage with a loop thing. :)

Topic Closed

This topic has been closed to new replies.

About this Topic