Title: Using loop with popup doesn&#8217;t work
Last modified: March 21, 2021

---

# Using loop with popup doesn’t work

 *  [williamdjamieson](https://wordpress.org/support/users/williamdjamieson/)
 * (@williamdjamieson)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/using-loop-with-popup-doesnt-work/)
 * Hello,
 * I am trying to create a popup with a video link that is for that particular post.
   I have a loop template, and a list of woocommerce product posts, but when the
   button is clicked to pop open the modal with the selected video, then it doesn’t
   show. It is just empty.
 * I think the reason is that every single popup has the same id=” value. The link
   populates well in the objects, but it just doesn’t show up in the video player(
   youtube link).
 * When I test the same template on a single product page it works fine. I think
   the main issue is that popup elements are not getting assigned a new id when 
   they are created in the loop.
 * Let me know if there is any trick to this to get this to work. Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fusing-loop-with-popup-doesnt-work%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [dudaster](https://wordpress.org/support/users/dudaster/)
 * (@dudaster)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/using-loop-with-popup-doesnt-work/#post-14356462)
 * Currently you need to fake it: create a second section and give it absolute position
   and use some js to show/hide it.
 *  [masterwebwork](https://wordpress.org/support/users/masterwebwork/)
 * (@masterwebwork)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/using-loop-with-popup-doesnt-work/#post-14563655)
 * Hi [@dudaster](https://wordpress.org/support/users/dudaster/) Please refer to
   this topic:
    [https://github.com/dudaster/ele-custom-skin/issues/457](https://github.com/dudaster/ele-custom-skin/issues/457)

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

The topic ‘Using loop with popup doesn’t work’ 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/)

## Tags

 * [custom skin](https://wordpress.org/support/topic-tag/custom-skin/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [video](https://wordpress.org/support/topic-tag/video/)
 * [Youtube](https://wordpress.org/support/topic-tag/youtube/)

 * 2 replies
 * 3 participants
 * Last reply from: [masterwebwork](https://wordpress.org/support/users/masterwebwork/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/using-loop-with-popup-doesnt-work/#post-14563655)
 * Status: not resolved