WordPress.org

Ready to get started?Download WordPress

Forums

Get List of Links for Current Author (4 posts)

  1. bremmerm
    Member
    Posted 3 years ago #

    How can i list all of the posts by an author? I don't want it to be a link I want to list it in a page.

    I tried:

    `<?php get_author_posts_url(2); ?>'

    that does not give me anything in return. Any help much appreciated

  2. bremmerm
    Member
    Posted 3 years ago #

    Is there not any way to list an Authors posts?

  3. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    I tried:

    <?php get_author_posts_url(2); ?>

    that does not give me anything in return.

    most functions starting with get_ don't output the result directly; you need to add an echo before it:

    <?php echo get_author_posts_url(2); ?>

    also have a look at:
    http://codex.wordpress.org/Function_Reference/the_author_posts_link

  4. bremmerm
    Member
    Posted 3 years ago #

    I don't know how to interpret that into the resolution...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.