I’ve been using Toolset a lot lately because it has lot’s of great features that don’t require you to know PHP. I’m still looking for the best way to add sliders and rotating galleries with Toolset, but this article gave me one solution.
1. Basically, you create a custom field that allows repeating entries. Here is what mine looked like:
2. Then in your Content Template, you use this in your shortcode:
[wpv-for-each field="wpcf-gallery"][/wpv-for-each]
So, for my gallery, here is the code I used:
[wpv-for-each field='wpcf-other-photos']
[types field='other-photos' alt='%%ALT%%' title='%%TITLE%%' width='220' height='220' align='left' resize='crop' separator=', '][/types]
[/wpv-for-each]
You can see that I wanted my images to be 220px square.
3. Here’s what it looks like displayed:
Leave a Reply