WordPress.org

Ready to get started?Download WordPress

Forums

Get Author Page to List Pages as well as Posts (2 posts)

  1. Ben B
    Member
    Posted 5 years ago #

    Hi all --

    I'm looking to show pages in addition to posts using author.php. I'm happy dealing with a little PHP in my pages; so can anyone point me in the direction of a code snippet to do this?

    When a user visits URL/author/admin, I want to also show the Pages by admin.

    TIA

    Ben

  2. MichaelH
    Member
    Posted 5 years ago #

    query_posts('caller_get_posts=1&author=1&post_type=page&post_status=publish&orderby=title&order=ASC');

    See example at query_posts, Author Parameters

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags