WP_Query的查询方法的WordPress数组参数:键名列表

Inisde wp-includes/query.php we have the following code:

class WP_Query {

//...

        function query( $query ) {
                $this->init();
                $this->query = $this->query_vars = wp_parse_args( $query );
                return $this->get_posts();
        }

//...

}

Where can I find a list of names which can be passed as keys to the $query hash together with some text describing what such parameters actually do? For example by following a tutorial example I was able to find out the $query parameter array supports values 's' for the serch keys and 'showposts' for maximum number of posts. Where can I find a list of all the other key names and what they do?

Thanks.

查看全部
duanseci1039
duanseci1039
2013/06/30 11:53
  • wordpress
  • php
  • arrays
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

2个回复