See the Pen Dynamic bootstrap 4 carousel using wordpress advanced custom fields by shannon briggs (@shandb) on CodePen.