public static function getByTaxonomy($taxonomyName, $taxonomyTerm) { $posts = Query::Custom(static::instance()->getPostType())->all()->term($taxonomyName, $taxonomyTerm)->get(); return static::toStaticList($posts); }