Open CullenJWebb opened 3 years ago
There's not enough information here to reproduce or determine the issue. I'd need to see the custom template loader class that extends the Gamajo_Template_Loader, find out where those files are located, and see how you're are instantiating the custom template loader class and how/where you're calling get_template_part()
.
Hello,
First off, thank you so much for a valuable tool such as this!
However, I ran into a hickup today as I attempted to use a template part in the header.php file. I run into this error:
In this specific example it mentions line 144 in my plugin only because I attempted to add an action to the header as a workaround. Here's what I tried in addition to editing header.php directly:
add_action('get_header', '[MY FUNCTION WITH TEMPLATE PART]');
Is there any way to get this working in the header?