I want to load templates via Rest API instead of via AJAX with the template shortcode.
Is this possible? I’ve tried but failed to find any documentation on where the templates lie in the JSON so I can’t go to /json/wp/xxxx or call this URL at all.
Also if this is possible, how do I ensure dynamic data tags in these template works when AJAX loaded/Rest API loaded? That’s the #1 issue I face - a template with a list of posts via a custom query don’t show because the custom query won’t work when loaded AJAX. Styling works but that’s about it. No scripts work either.