WordPress.org

Ready to get started?Download WordPress

Forums

showposts, numberposts, posts_per_page, $qstring, $args... confusion (2 posts)

  1. Rulatir
    Member
    Posted 1 year ago #

    The full title of this question, which wouldn't fit in the title field, should be:

    showposts, numberposts, posts_per_page, $qstring, $args, get_posts, query_posts, WP_Query constructor confusion

    I would like to ask WordPress gurus to answer this simple question:

    Which of the following:

    • showposts,
    • numberposts,
    • posts_per_page

    is supposed to work with:

    • get_posts(),
    • query_posts(),
    • new WP_Query()

    when passed using:

    • "foo=bar"
    • array("foo"=>"bar")

    These are actually 18 yes/no questions. Please answer all of them. I will print them in a tabular form and tack to my cubicle wall.

  2. Steve Taylor
    Member
    Posted 1 year ago #

    :-D Very good question(s)! I landed here looking for a quick answer, at many points in the past I've understood this situation, but I always forget. The best summary I can find is: http://stackoverflow.com/a/3335128/1087660

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags