About

/**
 * Signature
 * query_posts( $query )
 * @param $query (string)
 * @return (array) List of posts

Source

function &query_posts( $query ) {
    unset( $GLOBALS['wp_query'] );
    $GLOBALS['wp_query'] = new WP_Query();
    return $GLOBALS['wp_query']->query( $query );
}

ref: query_posts()

history | show excerpt | excerpt history