understanding theme hierarchy
I know there is a high chance I understood this the wrong way and I have a linear thinking so please bear with me, I am just following the official documentation
my understanding is if I create a file test.php
for example in the root directory of my theme.
and I visit the link to
example.com/test.php
or just
example.com/test
wordpress will follow the hierarchy rules and look for the file test.php
and show me its content
however that doesn't happen.
I always get what's in index.php
my question is: why ?
thank you
Topic template-hierarchy themes Wordpress
Category Web