Gallery – With Sidebar The gallery shortcode works by pulling in all the image attachments from the current post. You can select a column style, increase the image height and exclude images via their ID’s. 2,3,4,5,6 Columns Options