Skip Navigation

[Resolved] Image repeating

This support ticket is created 2 years, 6 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/Karachi (GMT+05:00)

This topic contains 4 replies, has 3 voices.

Last updated by Waqar 2 years, 6 months ago.

Assisted by: Waqar.

Author
Posts
#2500579
Screenshot-2022-11-21-at-08.58.25.jpg

Tell us what you are trying to do?
I have a site with custom posts for catamaran listings and everything was working fine on the page where I display a search and results but now for some reason some of the images are repeating themselves in the search.

Is there any documentation that you are following?
No

Is there a similar example that we can see?
No

What is the link to your site?
hidden link

#2500931

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi there

How are you outputting the image(s)?

What image is being output? A featured image? An image custom field? If an image custom field, how many values does the image field have for this post?

#2501175

I have the search results displaying from a view that I created:

[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<table width="100%" class="wpv-loop js-wpv-loop">
<wpv-loop wrap="3" pad="true">
[wpv-item index=1]
<tr>
<td>
[wpv-post-body view_template="Loop item in Catamaran Listing New"]
</td>
[wpv-item index=other]
<td>
[wpv-post-body view_template="Loop item in Catamaran Listing New"]
</td>
[wpv-item index=3]
<td>
[wpv-post-body view_template="Loop item in Catamaran Listing New"]
</td>
</tr>
[wpv-item index=pad]
<td></td>
[wpv-item index=pad-last]
<td></td>
</tr>
</wpv-loop>
</table>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No items found[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]

<div class="listing">
<div class="text">

[types field='featured-image' size='medium' align='none' resize='crop'output='raw'][/types]

<h3>[wpv-post-link]</h3>
<h4>$[types field='price'][/types]</h4>
</div>
</div>

Im not sure what other information to give - I don't fully understand the toolset language but am more than happy to provide logins to the site if you need to have a look

#2501251

Hi,

Thank you for contacting us and I'd be happy to assist.

The website is behind a coming soon page and I'll need to see how this view is set up in the admin area.

Can you please share temporary admin login details, in reply to this message?

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

regards,
Waqar

#2503973

Thank you for sharing the admin access details.

During troubleshooting, I noticed that the posts which are showing the repeated images, actually have multiple values stored in the custom field "Featured Image".

That custom field (in the field group "Information for Catamaran Listings") is now set to only have one value, but it is possible that earlier it was set to have repeating/multiple values.

To fix this, you can change that custom field to a repeating field and then open the edit screen of the posts which are showing multiple images and remove the extra/old image records.

Once removed, you can change that field back to a non-repeating field.