Title: Query loop use
Last modified: February 11, 2025

---

# Query loop use

 *  Resolved [jason kickmouth](https://wordpress.org/support/users/jason-kickmouth/)
 * (@jason-kickmouth)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/query-loop-use/)
 * Any way I can use this plugin in a query loop?
 * I think it would be perfect for the Team member grid I’m building and looking
   for an alternative to a heavy plugin.
 * The basic integration and trigger works but I tried it using ACF and CPT and 
   sadly it returns the same value for all the posts – a feature request perhaps.
 * Thanks

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

 *  Plugin Author [David Jensen](https://wordpress.org/support/users/dkjensen/)
 * (@dkjensen)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/query-loop-use/#post-18304585)
 * Hi [@jason-kickmouth](https://wordpress.org/support/users/jason-kickmouth/)
 * I think I understand your goal. I put together a beta version with the query 
   loop implementation you mentioned, would you mind installing the update below
   and let me know if this is what you had in mind?
 * [https://www.dropbox.com/t/eYZL2JzEfC4g6C8F](https://www.dropbox.com/t/eYZL2JzEfC4g6C8F)
 *  Thread Starter [jason kickmouth](https://wordpress.org/support/users/jason-kickmouth/)
 * (@jason-kickmouth)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/query-loop-use/#post-18305106)
 * Hi [@dkjensen](https://wordpress.org/support/users/dkjensen/)
 * Thank you so much for looking at that and here’s what I can report back.
 * As you’ll see I’ve put the modal inside the post template and it triggers on 
   the featured image and title.
   When I click either of those on any team member
   in the front end it opens all the modals, on top of each other at once.
 * ![](https://i0.wp.com/test.sweettree.co.uk/wp-content/uploads/2025/02/Screenshot-
   2025-02-13-at-22.07.35.jpg)
 * So it is pulling all the custom fields but displaying all the pages at once.
 * I guess we’d need a unique trigger id for each post right?
 * Which maybe defeats the point
 * I hope that’s of some help, I’d love to hear any thoughts
 * Regards
 * Jason
 *  Plugin Author [David Jensen](https://wordpress.org/support/users/dkjensen/)
 * (@dkjensen)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/query-loop-use/#post-18305833)
 * Yeah that’s what I was thinking, the update I provided checks if the modal is
   used within a query loop, and should provide a unique modal ID for each post 
   in the loop. I tested locally using a similar scenario to how you described with
   success.
 * Can you confirm the version number of the plugin you are using is 0.0.0-development?
 * Also if you are comfortable with it, would you mind privately sharing the URL
   to your site?
 *  Thread Starter [jason kickmouth](https://wordpress.org/support/users/jason-kickmouth/)
 * (@jason-kickmouth)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/query-loop-use/#post-18305932)
 * Hi David
 * Interesting that you’ve had some success with it, that’s promising.
 * I can confirm I’m using the version you mentioned 0.0.0-development
 * I’ve pinged yo a link to my dev site via the contact form on your website – do
   let me know if you get it.
 * Thanks again – this plugin will soon be even more awesome 🙂
 * J
 *  Plugin Author [David Jensen](https://wordpress.org/support/users/dkjensen/)
 * (@dkjensen)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/query-loop-use/#post-18306398)
 * Version 1.4.0 was released which implements the usage of a modal within the query
   loop block.
 *  [Jon Lewis](https://wordpress.org/support/users/jonlewiswo/)
 * (@jonlewiswo)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/query-loop-use/#post-18420881)
 * [@dkjensen](https://wordpress.org/support/users/dkjensen/) I’m using your latest
   version of the plugin and the latest wp version as of today, but for some reason
   the modal doesn’t work inside a query loop for me. It opens all instances of 
   the modal at the same time when I click a button block with the correlated selector.
   Is there something I’m missing in the process that would fix this? I’m used ACF
   to config the custom post type at this query is using. 
   Any help you can give
   me would be very much appreciated.
 *  Plugin Author [David Jensen](https://wordpress.org/support/users/dkjensen/)
 * (@dkjensen)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/query-loop-use/#post-18423767)
 * [@jonlewiswo](https://wordpress.org/support/users/jonlewiswo/) Is the light modal
   block inside your query loop post template?
 *  [Jon Lewis](https://wordpress.org/support/users/jonlewiswo/)
 * (@jonlewiswo)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/query-loop-use/#post-18424606)
 * [@dkjensen](https://wordpress.org/support/users/dkjensen/) Yes it is.
 *  Plugin Author [David Jensen](https://wordpress.org/support/users/dkjensen/)
 * (@dkjensen)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/query-loop-use/#post-18424622)
 * Do you have a link you could share? edit: you can email it to me on dkjensen.
   com
    -  This reply was modified 1 year, 1 month ago by [David Jensen](https://wordpress.org/support/users/dkjensen/).

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

The topic ‘Query loop use’ is closed to new replies.

 * ![](https://ps.w.org/light-modal-block/assets/icon.svg?rev=3399001)
 * [Light Modal Block](https://wordpress.org/plugins/light-modal-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/light-modal-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/light-modal-block/)
 * [Active Topics](https://wordpress.org/support/plugin/light-modal-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/light-modal-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/light-modal-block/reviews/)

## Tags

 * [query loop](https://wordpress.org/support/topic-tag/query-loop/)

 * 9 replies
 * 3 participants
 * Last reply from: [David Jensen](https://wordpress.org/support/users/dkjensen/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/query-loop-use/#post-18424622)
 * Status: resolved