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.
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?
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.
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
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?
@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.