Skip Navigation

[Resolved] loop skipping first item in group, but not the other items

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 2 replies, has 2 voices.

Last updated by Chris 1 year, 2 months ago.

Assigned support staff: Waqar.

Screenshot 2022-07-14 at 15.19.54.png

I am trying to: display an audio player for each song listing in the loop, the first item does not load the player but keeps spinning, the second item plays the audio from the first item, but displays all the other information for the item correctly

Link to a page where the issue can be seen: hidden link (scroll down to view all songs)

I expected to see: the audio player for the first item stop spinning and play the associated audio, and for the other players to play their respective audio.

Instead, I got: the audio of the previous item.

The audio player is generated by the WavePlayer shortcode.
All of the views using a song listing are having the same issue.
I've deactivated all plugins except Toolset, WooCommerce and Waveplayer and switched themes to TT1, the issue is still persisting.

Code in loop is

<div class="container">
  <div class="item first">
[waveplayer skin = "inline-play" size = "md" ]</div>
    <div class="item second">
[types field='mood'][/types]
    <div class="item third">
    <div class="item fourth">
      <a class="button" href="[wpv-post-url]">View and Buy</a>

I've given admin access via the temporary login plugin - the link is in the username field below.



Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)


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

I noticed that the view "List all songs" is set to use the content template "loop-item-in-list-all-songs", to show the individual loop items.

I included the suppress_filters="true" attribute in that template's shortcode and the audio player is fixed now:
( ref: )

[wpv-post-body view_template="loop-item-in-list-all-songs" suppress_filters="true"]

It appears some content filter from the active theme or a third-party player was affecting this and by including suppress_filters="true" attribute, the extra content filters are removed from the template's output.



Waqar - thank you so much for your assistance, very grateful indeed.
My issue is resolved now. Thank you!