Forums

Return list of all author-written *PAGES*, not posts? (1 post)

  1. damassipappas
    Member
    Posted 4 years ago #

    Hi,

    Would somebody explain how to use get_pages()? Specifically, I'd like to return all of the page titles (with links) written by a specific author. I thought wp_list_pages would work, but it appears as though you can't limit that function to a single author.

    I've figured out how to return the NUMBER of pages that the user has written --

    $pagesTotal = get_pages( "authors=$urlID");
    echo count($pagesTotal);

    -- but cant access anything further.

    There is very little documentation on this function, and I can imagine it becoming more and more useful as wordpress moves away from its (very general) blogging-only classification...

    Any help --anything at all-- would be immensely appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic