https://sangkrit.net/easily-display-wordpress-posts-custom-post-types-or-sticky-posts-with-an-array-of-options/
Easily Display WordPress Posts, Custom Post Types Or Sticky Posts With An Array Of Options