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