I have the following code:
print $node->field_carousel_1[0]['filepath'];
What i would like to do is change the 1 and use a variable instead.
Do you have any idea how i would be able to do this?
What i am aiming for: Using a variable instead of the one to create a looping function to print field_carousel_1, field_carousel_2, field_carousel_3 etc
You can try something like this: