X

How to Add Gallery Shortcode in WordPress

Snippets by IsItWP

Are you looking for a way to add gallery shortcode to posts and automatically create an image gallery? While there’s probably a plugin for this, we have created these shortcodes to automatically create image gallery of your photos.

Instructions:

All you have to do is add these shortcodes to your posts, pages, or template files where you want to display the image gallery.

[ gallery columns="4" ]

[ gallery id="123"]

[ gallery size="medium"]

If you liked this code snippet, please consider checking out our other articles on the site like: 28 best WordPress resume themes to create best impression and how to set up download tracking in WordPress with Google Analytics.

Comments  Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!
[60% OFF Today!]
[60% OFF Today!]
[10% OFF Today!]
[10% OFF Today!]
[50% OFF Today!]
[50% OFF Today!]