Hey guys,
I'm trying output an image from a custom field within another repeater field. I'll attach screenshots but it's working fine for the first field but on the second repeater field the image src is set to unknown. Hope that makes sense.
Screenshots: hidden link
Hello,
I assume you are going to display a multiple instances image field of parent post type in single child post.
If it is, you can try these:
1) Create a content template, for example "integration-post-info", in the content, setup the [wpv-for-each] shortcode by following our document:
https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-for-each
For example:
<ol>[wpv-for-each field="wpcf-app-icon"]<li>Here display your image field with HTML codes</li>[/wpv-for-each]</ol>
2) In the single child post content, display above content template shortcode, like this:
[wpv-post-body view_template="integration-post-info" item="@integration.parent"]
More help:
https://toolset.com/documentation/user-guides/views/views-shortcodes/item-attribute/
I'll try again with the information you've provided but I probably should have told you a little more detail. I have two post types that create a relationship post type called integrations. Since repeating field groups aren't supported in intermediary post types I was trying to create a repeater field. I need the image from the two parent post types to be pulled into the div that is getting repeated by the repeater field. This works for the first field but after that I run into the unknown source issue.
I'll try what you suggested above but I thought I'd give a little more information just incase.
Thank you!
I figured out a work around as I couldn't get any other solution to work.