This plugin allows to create gallery for custom post using short-code.
[LCPOSTLIST post_type="post" limit=4 order="ASC" pagination="off"]