Skip Navigation

[Resolved] Issue with wpv-for-each

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by markoN 2 years ago.

Assisted by: Minesh.

Author
Posts
#2515367

Hello,

I have issue on web site with wpv-for-each

We created website few years ago, and everything works perfect, but we saw now problem with loop for custom image field (multiple instances activated)

Old code:

And everything works fine, I have unorder list with list items, every "a" was properly linked and show only one image.

Now, with the same code I have also unordered list, but in every single list item i have all images with links. If, I remove wpv-for-each single list item are ok, but in "a" tag i have link to all images, not only for one image.

Everything is up to date, and maybe this is issue with new version of WP or Toolset.

#2515955

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Could you Please share problem URL where you added the [wpv-for-each] shortcode and admin access details and let me review your current setup and get back to you with the possible solution or workaround.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2516065

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've adjusted the [wpv-for-each] shortcode content as given under with your content template:

 [wpv-for-each field="wpcf-event-gallery"]
      <li><a href="[types field='event-gallery' size='full' url='true'][/types]">
          [types field='event-gallery' title='%%TITLE%%' alt='%%ALT%%' size='custom' width='360' height='300' resize='proportional'][/types]</a> </li>
  [/wpv-for-each]

Can you please confirm it works as expected.

#2516091

My issue is resolved now. Thank you!