2013-06-30 11:53
浏览 52


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

class WP_Query {


        function query( $query ) {
                $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?


  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

2条回答 默认 最新

相关推荐 更多相似问题