It appears as though the template override for new-post.html is not working. When I try using my own templates, the only thing that gets included is the post-content.html template.
However, there seems to be an easy fix. In plugin.php line 56 is:
$template_directory['new_post'] = get_bloginfo('template_directory').'/angularjs-templates/post-content.html';
and if I change it to:
$template_directory['post_content'] = get_bloginfo('template_directory').'/angularjs-templates/post-content.html';
it seems to work just fine. Looks like you’re assigning $template_directory[‘new_post’] twice. Not sure why this makes a difference for template overrides and not for the built-in templates, but I haven’t gone into the code enough to see why.
- The topic ‘Template override for new-post.html appears to not be working’ is closed to new replies.