original_string: public static function queryPosts($args)
      {
          $query = new WP_Query($args);
          // Set default return to false
          $posts = false;
          // Iterate and build the array of instances instances
          if ($query->have_posts()) {
              global $post;
              // Create the array
              $posts = array();
              while ($query->have_posts()) {
                  $query->the_post();
                  $thePost = static::create($post);
                  array_push($posts, $thePost);
              }
          }
          return $posts;
      }
code: public static function queryPosts($args)
      {
          $query = new WP_Query($args);
          // Set default return to false
          $posts = false;
          // Iterate and build the array of instances instances
          if ($query->have_posts()) {
              global $post;
              // Create the array
              $posts = array();
              while ($query->have_posts()) {
                  $query->the_post();
                  $thePost = static::create($post);
                  array_push($posts, $thePost);
              }
          }
          return $posts;
      }
code_tokens: public static function queryPosts ( $ args ) { $ query = new WP_Query ( $ args ) ; // Set default return to false $ posts = false ; // Iterate and build the array of instances instances if ( $ query -> have_posts ( ) ) { global $ post ; // Create the array $ posts = array ( ) ; while ( $ query -> have_posts ( ) ) { $ query -> the_post ( ) ; $ thePost = static :: create ( $ post ) ; array_push ( $ posts , $ thePost ) ; } } return $ posts ; }
docstring: Query for posts and returns an array of the model
  
  @access public
  @static
  @return array|bool
docstring_tokens: Query for posts and returns an array of the model