I am trying to: Display the exact amount of uploaded pictures
In my CPT I add a Costum Post Field to upload pictures:
hidden link
In my View I like to display exactly the amount of pictures which are uploaded - for example if somebody uploaded 7 pics I like to display 7 pics. I can not handle it in the moment - the code in my content template looks like this:
(Its a shortcode in a shortcode - i insert the type fields into a shortcode-slider of my theme provider):
--------------------------------
[ux_slider]
[ux_banner bg="[types field="yogareise-foto" index="0" output="raw"][/types]" height="450px" text_align="center" text_pos="center" text_color="light" text_width="80%"]
[/ux_banner]
[ux_banner bg="[types field="yogareise-foto" index="1" output="raw"][/types]" height="450px" text_align="center" text_pos="center" text_color="light" text_width="80%"]
[/ux_banner]
[ux_banner bg="[types field="yogareise-foto" index="2" output="raw"][/types]" height="450px" text_align="center" text_pos="center" text_color="light" text_width="80%"]
[/ux_banner]
[ux_banner bg="[types field="yogareise-foto" index="3" output="raw"][/types]" height="450px" text_align="center" text_pos="center" text_color="light" text_width="80%"]
[/ux_banner]
[ux_banner bg="[types field="yogareise-foto" index="4" output="raw"][/types]" height="450px" text_align="center" text_pos="center" text_color="light" text_width="80%"]
[/ux_banner]
[ux_banner bg="[types field="yogareise-foto" index="5" output="raw"][/types]" height="450px" text_align="center" text_pos="center" text_color="light" text_width="80%"]
[/ux_banner]
[ux_banner bg="[types field="yogareise-foto" index="6" output="raw"][/types]" height="450px" text_align="center" text_pos="center" text_color="light" text_width="80%"]
[/ux_banner]
[ux_banner bg="[types field="yogareise-foto" index="7" output="raw"][/types]" height="450px" text_align="center" text_pos="center" text_color="light" text_width="80%"]
[/ux_banner]
[ux_banner bg="[types field="yogareise-foto" index="8" output="raw"][/types]" height="450px" text_align="center" text_pos="center" text_color="light" text_width="80%"]
[/ux_banner]
[ux_banner bg="[types field="yogareise-foto" index="9" output="raw"][/types]" height="450px" text_align="center" text_pos="center" text_color="light" text_width="80%"]
[/ux_banner]
[/ux_slider]
---------------------------
So now it looks like this: hidden link
A slider with 10 pictures uploaded - 7 pics / 3 empty
Can you point me in the right direction how to display a costum post field into a slider if there a multiple instances and I dont know the exact amount of pic that will be uploaded?
Thanx so much for your support!!
Petra