Theme templates refactoring and subscribe function called from single post