Oh, nevermind… I see how you’re handling the data here. I’ll need to extend a function to add my custom fields. I guess it won’t be just a simple template file, then.
Dear @dauidus,
Could you, please, clarify what popup type are you referring to?
I’d like to display custom fields for all my HTML popups.
Thanks!
Dear @dauidus,
Could you, please, share an example so we can get you correctly?
Is it some kind of a form popup, like Subscription, Contact form, or some other?
Nope, just a content popup. We’re creating a car rental site, and each HTML popup represents a vehicle. When our client eventually goes to edit any HTML popup, they won’t see the WYSIWYG editor… instead, they’ll see a bunch of custom fields with MPG, passenger count, fuel economy, etc. I have all these setup fine.
When a user clicks that popup (I’ve written a custom query that goes through all the popups and displays them in a template, each as a link to the popup itself) I’d like my custom fields to display formatted within the popup – so I need to be able to edit the output of the HTML popup type.
I’ve got everything setup and working just fine, but can’t determine where I need to modify code to display my custom fields. I’m used to doing this type of customization with template files for each custom post type, but since you’re loading the plugin content with js and a php function instead, I’m getting a bit stuck. I can provide you with login credentials to view what I’m doing, if you wish.
Really, I just need to know how to modify the output of an HTML popup.
Thanks!
My other option seems to be to do this with an iframe popup… that way, I can create a custom post type called vehicles and create my custom template there… then just load that into a popup. But, I feel it would be confusing (and kinda hack-ish) to make my client add a popup AND a vehicle for every car. I’m looking to streamline this as much as possible.
Alright – think I’ve figured it out. Need to modify output in the ScriptsLoader.js file, in the LoadToFooter function.
Dear @dauidus,
Is there anything else we can help you with? π