Setting up a new wordpress site at the moment separating
wp_content. I'm using timber and twig for my views/templates.
My current project structure is:
\ core (wp_core) |- \ content |- \ mu-plugins |- \ plugins |- \ themes |- \ uploads
All plugins etc are working fine and wp is picking up the theme, using it perfectly. My
content/themes then goes on to be structured like so:
|- \content |- \theme_name |- \ acf_json |- \ config |- \ templates |- \ views
All of my templates are stored in views and all my twigs are stored in templates. I have set up a home page which uses a custom template (
views/page-landing.php) and using breakpoints I can see that when I go to the home page of the site it hits the break point and when continued it presents the correct data.
I have also set up a custom post type called project/projects. In order to list the projects I have created an
views/archive-project.php file and set the custom post type to use archives.
But unfortunately when i try going to
http://example.com/project I just get a blank screen and the breakpoint doesn't get hit. This is happening on all other templates except ones that I explicitly set on a page when creating it. e.g. taxonomy/archive/single not working.
EDIT After step debugging more i know that wordpress is looking for the correct file e.g. archive-project.php, but what it is not doing is looking in the views sub directory so for instance if I move
archive-project.php into the theme root directory it works perfectly but in the subdirectory of views wordpress doesn't find it. After researching it seems wordpress should be doing this since WP 3.4.