I am trying to: have image repeater fields pop up large when clicked on.
I have tried this and several other similar shortcodes:
<li style="list-style-type: none">
[wpv-for-each field="wpcf-rental-pictures" separator=" "]
<div class="col-xs-12 col-md-3 col-lg-2">
<a href="[types field="rental-pictures" raw="true"][/types]" class="thickbox">[types field="rental-pictures"][/types]</a></div>
[/wpv-for-each]
The above returns hidden link
The Thickbox must be supported by your theme:
https://codex.wordpress.org/Javascript_Reference/ThickBox
The ThickBox is then added via HTML to your Field.
If this is a repeating Field, you do use the For Each ShortCode of Views as you do already.
Please try this reviewed Code:
[wpv-for-each field="wpcf-rental-pictures"]
<a class="thickbox" rel="gallery" href='[types field="rental-pictures" raw="true" link="false"][/types]'>[types field="rental-pictures" link="false" size="thumbnail"][/types]</a>
[/wpv-for-each]
Hello:
That did not do the trick. When clicked on the web browser reloads the page and the image does not popup....
This example works fine on my end, I used it repeatedly on Views.
Are you using this in another place than a View?
Are you sure, that your theme supports Thickbox as elaborated here?
https://codex.wordpress.org/Javascript_Reference/ThickBox
Also please try to edit the code I suggested with a tiny change.
Remove the rel=gallery and change the output from raw=true to output=raw.
See example below:
[wpv-for-each field="wpcf-images"]
<a href="[types field='images' output='raw' link='false'][/types]" class="thickbox">[types field="images" link="false" size="thumbnail"][/types]</a>
[/wpv-for-each]