Dynamic data from posts in popups
Alex
Popups can contain any static data and that's ok. But what if I want to show dynamic data from CPT in popup too.
Here is the case to use this feature.
- I create a srvices/products post type or use WooCommerce product post type;
- I create a popup with dynamic data from chosen CPT;
- Then I create listing card template for my CPT;
- During create listing, I put the button (f-ex. Learn More), which will open popup, created on the step 2;
- And now I add the query builder block and choose listing template.
When I click the button I get the dynamic data from CPT. It can be properties, characteristics, gallery from custom fields and description from main content.
We can also put the form inside popup and get one click orders. Form email template can contain the post Title and post permalink (if CPT publicly_queryable = true). So, customers manager can understand which product or service was ordered.
The best example of similar solution — JetPopup + JetEngine for Elementor.
It would be great feature especially for landing pages.
W
Wim Bommerez
This would be very useful. For example, I have a CPT with Team members. I want to show a post loop with all the team members showing some basic info in the card (using a global block containing custom team member fields). In every team member card, I want to have a link with 'Short bio', that opens a popup with some more info about the team member.
I would be great if the content of that popup could come from dynamic data fields in the Team member CPT, instead of having to build separate popups for every team member and then linking them to the correct team member.
A
Andrea
Add this, PLS!
Bertus De Leeuw
No status?
R
Reshimo
I got dynamic data to work like a charm with Oxygen and repeater/modal elements. Why would dynamic data not be available for popups in Breakdance?
Makes no sense. Please add this!
Richard
Really missing this feature
Barry Smith
I can definitely see a use for this for dynamic data.
J
Joseph Ralston
It can be done with a Javascript function that gets called onclick from the PostLoopBuilder global block, passing the data as 'data-' attributes, and setting the values of related elements in the popup from the JS. I've done it before, then clearing those element values in an 'close' function when the popup gets closed.
Pierre Bost
It's a must have! I went through a lot of trouble for a customer, and finally gave up for a simpler solution.
Thanks in advance
Kayla Cooper
Hey, is there a way to do it using the pop up settings and conditions?
Chris Thompson
Alex In case you don't know, this is already a feature...unless maybe I'm missing your point.
You have to build all the parts, but I don't see any limitations with using dynamic data in various ways in a popup. Everything I've tried with dynamic data in popups so far has worked as expected.
Alex
Chris Thompson: yeah, you missed out.
What you wrote about is true if you are inside a post or page. I mean archives or arbitrary loops.
Load More
→