Skip Navigation

[Resolved] Repeatable Group is not working as a loop view.

This thread is resolved. Here is a description of the problem and solution.

Problem:

I set up a repeatable group and built the view, it is only showing the first item in the group and not the next 2 in the loop.

Solution:

In this case, it needs only one html "UL" tag, for example:

https://toolset.com/forums/topic/repeatable-group-is-not-working-as-a-loop-view/#post-1272171

Relevant Documentation:

This support ticket is created 5 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/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by chrisC-25 5 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#1272029

I set up a repeatable group and built the view, it is only showing the first item in the group and not the next 2 in the loop.

Link is here:
hidden link

It is the "Playlists" button below the other buttons setup as the view. Experimenting with different things so disregard the other buttons.

Here is the loop editor:
[wpv-layout-start]

<div class="btn-group">
<button type="button" class="btn btn-apple dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">[icon type="apple"] Playlists <span class="caret"></span></button>
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
<ul class="dropdown-menu">

  • [wpv-post-body view_template="loop-item-in-apple-playlists"]
  • </wpv-loop><!-- wpv-loop-end -->
    </div><!-- /btn-group -->

    [/wpv-items-found]
    [wpv-no-items-found]
    [wpml-string context="wpv-views"]No items found[/wpml-string]
    [/wpv-no-items-found]
    [wpv-layout-end]

    and the loop item:
    [types field="apple-playlist-name" output='raw'][/types]

    I want the items to appear on the drop down as links. Only the first is showing.

    Thanks

    #1272171

    Hello,

    In your case, it needs only one html "UL" tag, for example, you can try to modify the codes you mentioned above as below:

    ...
    <!-- wpv-loop-start -->
    <ul class="dropdown-menu">
    <wpv-loop>
    <li>[wpv-post-body view_template="loop-item-in-apple-playlists"]</li>
    </wpv-loop>
    </ul>
    <!-- wpv-loop-end -->
    ...
    
    #1272771

    My issue is resolved now. Thank you!