Skip Navigation

[Resolved] View outputting multiple images, but showing duplicates of some images

This support ticket is created 7 years, 2 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.

This topic contains 2 replies, has 1 voice.

Last updated by crystalF 7 years, 2 months ago.

Author
Posts
#568119

We are building an auction listing website using Toolset.

Link to a page where the issue can be seen: hidden link

I expected to see but instead I got:
Output of the images a single time but it is duplicating several images

This is the view edit page:
hidden link

(FYI we are in the process of turning on petersencollectorcars.com and the dns is propagating now. The site can be accessed at crystals-customs.com until propagation completes)

This is the Loop Output Editor:

[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-for-each field="wpcf-images"]
[types field="images" size="medium" link="false" id="$current_page"][/types]
[/wpv-for-each]
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No images found at this time.[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]

This view is being called by Layout: Template for Auctions on Row 7:
hidden link

Can you please help?
Thank you!
Crystal

#568134

Update! All URLs are now petersencollectorcars.com. Here is a revised support ticket:

We are building an auction listing website using Toolset.

Link to a page where the issue can be seen: hidden link

I expected to see but instead I got:
Output of the images a single time but it is duplicating several images

This is the view edit page:
hidden link

(FYI we are in the process of turning on petersencollectorcars.com and the dns is propagating now. The site can be accessed at crystals-customs.com until propagation completes)

This is the Loop Output Editor:

[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-for-each field="wpcf-images"]
[types field="images" size="medium" link="false" id="$current_page"][/types]
[/wpv-for-each]
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No images found at this time.[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]

This view is being called by Layout: Template for Auctions on Row 7:
hidden link

Can you please help?
Thank you!
Crystal

#568264

I figured out the fix. Much easier to put the info I was including in my View Loop directly in the Layout:

[wpv-for-each field="wpcf-images"][types field="images" size="medium" link="false" id="$current_page"][/types][/wpv-for-each]

It is working beautifully! Thank you for building such an amazing tool!

Best,
Crystal