[su_custom_gallery source="media: 1650,1648,1649" link="image" target="blank" width="120" height="80" title="hover"]

Table of contents

  1. Description
  2. Options
  3. Related articles

Description

This shortcode allows you to easily create custom galleries.

Options

Option namePossible valuesDefault value
source
Choose images source. You can use images from Media library or retrieve it from posts (thumbnails) posted under specified blog category. You can also pick any custom taxonomy
media: 1,2,3 (Media file IDs)
posts: 1,2,3 (Post IDs)
posts: recent (Recent posts)
category: 1,2,3 (Category IDs)
taxonomy: book/3,5 (Taxonomy term slug / term IDs)
none
limit
Maximum number of image source posts (for recent posts, category and custom taxonomy)
Number from -1 to 10020
link
Select which links will be used for images in this gallery
none (None)
image (Full-size image)
lightbox (Lightbox)
custom (Slide link (added in media editor))
attachment (Attachment page)
post (Post permalink)
none
target
Open links in
self (Open in same tab)
blank (Open in new tab)
self
width
Single item width (in pixels)
Number from 10 to 160090
height
Single item height (in pixels)
Number from 10 to 160090
title
Title display mode
never (Never)
hover (On mouse over)
always (Always)
hover
class
Additional CSS class name(s) separated by space(s)
CSS class name(s) separated by space(s)– none –

Photos by Matt Palmer