I can not seem to discover a answer to truly loading a template, passing arguments to it, executing it, and displaying the outcomes from a shortcode registered by way of features.php
Is that this even attainable? I want to have editable template components that aren’t hard-coded into the operate. I attempted output buffer, however it nonetheless would not get something from the get_template_parts()
features, so I needed to return to outputting HTML from the operate.
Edit: Wouldn’t it be acceptable to simply embrace/require the recordsdata, and seize them with output buffer? Is that acceptable for WordPress?