Applying generic templates for WordPress pages/posts