Title: Function loop
Last modified: April 3, 2023

---

# Function loop

 *  Resolved [kouby640](https://wordpress.org/support/users/kouby640/)
 * (@kouby640)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-loop/)
 * Good morning. does the player have a loop function? can we add one or not? THANKS.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffunction-loop%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-loop/#post-16623208)
 * Hello [@kouby640](https://wordpress.org/support/users/kouby640/)
 * Yes, it has. You should pass the loop attribute through the playlist shortcode.
 * **loop**: plays all playlist items in an endless loop. The accepted values are:
   1 or 0:
 * `[wcmp-playlist products_ids="*" loop="1"]`
 * Best regards.
 *  Thread Starter [kouby640](https://wordpress.org/support/users/kouby640/)
 * (@kouby640)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-loop/#post-16625751)
 * Hello, thank you for your answer, but this concerns products for woocommerce,
   isn’t there an option or a code to add to have this loop option? thanks in advance.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-loop/#post-16625954)
 * Hello [@kouby640](https://wordpress.org/support/users/kouby640/) ,
 * I’m sorry, I don’t understand your question. In the current plugin version, the“
   loop” is an attribute in the playlist shortcode. But, you can use the playlist
   shortcode directly on products pages, and by inserting it without the “products_ids”
   attribute, the plugin would load the audio files associated with the current 
   product.
 * Best regards.
 *  Thread Starter [kouby640](https://wordpress.org/support/users/kouby640/)
 * (@kouby640)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-loop/#post-16626027)
 * ![](https://i0.wp.com/ps.w.org/music-player-for-woocommerce/assets/screenshot-
   04.png?ssl=1)
 * sorry for my english, i’m french. On this page, is it possible to have a loop
   button?
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-loop/#post-16626043)
 * Hello [@kouby640](https://wordpress.org/support/users/kouby640/)
 * The current version of the plugin does not include a loop attribute in the player
   settings. But I will take your suggestion into account for the next update of
   the plugin.
 * Best regards.
 *  Thread Starter [kouby640](https://wordpress.org/support/users/kouby640/)
 * (@kouby640)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-loop/#post-16626049)
 * thank you very much for your quick response
 *  Thread Starter [kouby640](https://wordpress.org/support/users/kouby640/)
 * (@kouby640)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-loop/#post-16653298)
 * Good morning.
   Thanks for the update, and the added loop option. However, when
   I try to activate the option, it does not register. Do you know why ?
 * THANKS
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-loop/#post-16653302)
 * Hello [@kouby640](https://wordpress.org/support/users/kouby640/)
 * Have you purged the website and browser caches?
 * Best regards.
 *  Thread Starter [kouby640](https://wordpress.org/support/users/kouby640/)
 * (@kouby640)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-loop/#post-16653373)
 * yes I have purged the cache of the site, on the other hand if I check play all
   + loop only play all remains active
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-loop/#post-16653387)
 * Hello [@kouby640](https://wordpress.org/support/users/kouby640/)
 * Could you please indicate the URL of the product’s page where you enabled the
   loop attribute?
 * Best regards.
 *  Thread Starter [kouby640](https://wordpress.org/support/users/kouby640/)
 * (@kouby640)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-loop/#post-16653396)
 * I try to put it on its test : [https://haizeak.com/produit/test-loop/](https://haizeak.com/produit/test-loop/)
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-loop/#post-16653870)
 * Hello [@kouby640](https://wordpress.org/support/users/kouby640/)
 * My apologies for the delay in responding to your question. We have been checking
   the issue cause and released a plugin update (seconds ago) to fix it. Please,
   install the latest plugin update, and let me know if the issue persists.
 * Best regards.
 *  Thread Starter [kouby640](https://wordpress.org/support/users/kouby640/)
 * (@kouby640)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/function-loop/#post-16656851)
 * hello !! Is OK 👌, i have intall a Last version, and it ‘s good. Thank you vers
   much. You are the Best !!!

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Function loop’ is closed to new replies.

 * ![](https://ps.w.org/music-player-for-woocommerce/assets/icon-256x256.jpg?rev
   =1462208)
 * [Music Player for WooCommerce](https://wordpress.org/plugins/music-player-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/music-player-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/music-player-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/music-player-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/music-player-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/music-player-for-woocommerce/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [kouby640](https://wordpress.org/support/users/kouby640/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/function-loop/#post-16656851)
 * Status: resolved