I am building a new website and trying to add a new page for news with a custom template. The only problem is that it does not load the template file I set it to load, instead it loads my homepage template. I figured it had something to do with the Template_Hierarchy but it seems i’m unable to find out or change the fact that it loads a wrong template file.
Things i use atm for news
Page: News
Custom post type: News
Taxomony tag: News
Perhaps i should change something because they all use the same names.
The URL where I want the custom template to load is
http://www.website.com/news
I hope someone can help me out with this.
Thanks in advance.
Edit:
I’ve just noticed that also when I visit any other page that menu button gets highlighted(so you know you are on that page atm.) But when I visit the news page it highlights “Home”.
From what you have mentioned, I think you should change the theme file name and check the template settings in WordPress Backend if you are able to view the template.
For eg
/*
Template Name: News New
*/
Thanks and Regards
Shiva
Create a php file inside your theme folder with the name ‘page-news.php’. Copy the same code as your ‘page.php’ file inside page-news.php. This is the file that will be loaded when you enter http://www.website.be/news. Customize this file as you wish.