Updated the loading of custom post templates.