How to make repeatable custom fields in WordPress without paying for Advanced Custom Fields (ACF)

I was using the free version of Advanced Custom Fields (ACF) when I needed a way to make a gallery field where you select some images, order them and it displays as a gallery on a certain page and that’s impossible with the free version of ACF. I couldn’t pay for the Pro version of ACF either, so I looked for an alternative and I found Custom Field Suite. It has a good amount of the basic fields plus a repeatable/loop field which lets you repeat groups of the basic fields, incredibly handy!