After updating to the latest version, old page templates were automatically removed and now when I am trying to add my new page template, it’s not showing up. What to do?
If I am using hook, the ad code is getting inserted to each page which is not desired.
How were you adding the page templates? If you’re adding custom page templates, they should go into your child theme – that way, updating the theme won’t affect them.
I’ve added the templates into wp-content/themes/generatepress/custom-template.php and it has worked before. I’ve even added a template called sitemap.php and it’s working fine but newer templates are not showing and I am really fizzled as why?