Title: Loop in loop
Last modified: July 30, 2021

---

# Loop in loop

 *  [alexene22](https://wordpress.org/support/users/alexene22/)
 * (@alexene22)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/loop-in-loop/)
 * Hello,
 * How can I use a custom loop inside another custom loop item?
    It seems like both
   iterations use the same object, so the first loop resets after the second loop
   renders for the first time.
 * The example goes like this. I am using the Elementor Pro Posts widget and Ele
   Custom Skin (not Pro):
    – the first CPT is Books and the second CPT is Pages 
   of books – The first LOOP should show all the Books, and inside each Book item
   there should be a loop of Pages. – The first Book with its loop of Pages is shown
   well. But, the second Book it’s shown with a Page template, and all the loops
   stop there. – If I use a standard template, the loops go both well till the end.
 * So it seems like Ele Custom Skin doesn’t use local objects, but a general default
   one.
 * Is there any solution for reseting loops after each use?
    Thank you!

Viewing 1 replies (of 1 total)

 *  Plugin Author [dudaster](https://wordpress.org/support/users/dudaster/)
 * (@dudaster)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/loop-in-loop/#post-14726893)
 * Yeah it doesn’t work. You can use somehow classic/cards skin inside though. Try
   to make work like this!

Viewing 1 replies (of 1 total)

The topic ‘Loop in loop’ is closed to new replies.

 * ![](https://ps.w.org/ele-custom-skin/assets/icon.svg?rev=3536751)
 * [ECS - Ele Custom Skin for Elementor](https://wordpress.org/plugins/ele-custom-skin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ele-custom-skin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ele-custom-skin/)
 * [Active Topics](https://wordpress.org/support/plugin/ele-custom-skin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ele-custom-skin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ele-custom-skin/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [dudaster](https://wordpress.org/support/users/dudaster/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/loop-in-loop/#post-14726893)
 * Status: not resolved