Skip Navigation

[Resolved] Image Source Unknown in Repeater Field

This support ticket is created 4 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by jarrodM 4 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1426497

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

#1427279

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/

#1427901

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!

#1427935

I figured out a work around as I couldn't get any other solution to work.