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;
    }
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;
    }
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 ; }
Query for posts and returns an array of the model

@access public
@static
@return array|bool
Query for posts and returns an array of the model