source/php/Module/Posts/Posts.php
public static function getPosts($module)
    {
        $fields = json_decode(json_encode(get_fields($module->ID)));
        if ($fields->posts_data_source == 'input') {
            return self::getManualInputPosts($fields->data);
        }

        return get_posts(self::getPostArgs($module->ID));
    }
public static function getPosts($module)
    {
        $fields = json_decode(json_encode(get_fields($module->ID)));
        if ($fields->posts_data_source == 'input') {
            return self::getManualInputPosts($fields->data);
        }

        return get_posts(self::getPostArgs($module->ID));
    }
public static function getPosts ( $ module ) { $ fields = json_decode ( json_encode ( get_fields ( $ module -> ID ) ) ) ; if ( $ fields -> posts_data_source == 'input' ) { return self :: getManualInputPosts ( $ fields -> data ) ; } return get_posts ( self :: getPostArgs ( $ module -> ID ) ) ; }
Get included posts
@param  object $module Module object
@return array          Array with post objects
Get included posts