Navigation überspringen

[Gelöst] The repeater field loop generate an empty first item

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:
The repeater field loop generate an empty first item

Solution:
Well - there was a issue with users code.

You can find the proposed solution in this case with the following reply:
https://toolset.com/forums/topic/the-repeater-field-loop-generate-an-empty-first-item/#post-1153689
Relevant Documentation:

This support ticket is created vor 6 Jahren, 1 Monat. 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
- 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)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von adameD vor 6 Jahren, 1 Monat.

Assistiert von: Minesh.

Author
Artikel
#1152771

I am trying to: Generate a list of countries that I preset using a custom field repeater.

Link to a page where the issue can be seen: versteckter Link

I expected to see: A list of flags.

Instead, I got: My list of flag but with an empty item preceding it.

#1153023

Minesh
Supporter

Sprachen: Englisch (English )

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

Hello. Thank you for contacting the Toolset support.

Yes - I see the first item is blank but to debug this issue fruther I need access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

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

#1153689

Minesh
Supporter

Sprachen: Englisch (English )

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

Well - there is no issue from Toolset but you have by mistake added following shortcode outside the view's loop:

[wpv-post-body view_template="Loop item in Top Countries List"]

And that is why it was displaying one empty records as the template has been called one time outside the view's loop. I've removed that code and now it looks OK.

Could you please confirm?
=> versteckter Link

#1154123

I must have missed that!

Thanks for your help, Minesh 🙂

Have a wonderful day.