[Resolved] map template not loading in layout view.
This thread is resolved. Here is a description of the problem and solution.
Problem:
The content template created for map or not loading for layout view.
Solution:
I managed to solve it by creating a new Content Template >> then added the above map marker shortcodes into that >> and then added that newly created Content Template into the Layout.
This support ticket is created 7 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
I have analyzed this issue and what I see is that in a Layout >> when we add a Map marker >> then insert a Content Template in the Popup content field >> it does not output the content (as it does on the archive page).
Please see attached screenshot -- is this what you are trying to show and is not working, please confirm?
I am also testing a few things in Layout in this regard. Thank you
That is generated by layout so we can't change that. That's may be the cause but I am not sure yet. I am trying to reproduce the issue at my end and will update you accordingly.
I managed to solve it by creating a new Content Template >> then added the above map marker shortcodes into that >> and then added that newly created Content Template into the Layout.
Which makes it execute properly and its working now, please check the page.
CT can be used with multiple Post types or archives. I would call it more like a limitation or parsing / execution limitation or an edge case instead of a bug at this point. Where things get too complex I have seen in another site before where a native shortcode for parent post title also didn't executed properly in a Layout.
So in such cases we use this alternate approach that is by executing the content in a CT and then re-add that into the Layout template that makes it work fine. I have found this method to be very handy.
But yeah I will keep an eye on similar case and as I found more reports on this I will pass it accordingly. Thank you