I am creating a movie website. I have 6 categories (Genre, Director, etc.), each with its own group of subcategories (for example Genre > Action, Drama, Western, etc.).
All of my posts are in multiple categories and subcategories.
I successfully created templates for the various categories and subcategories, using both built-in inheritance and the inheritance plugin (I had to tweak the categories a little, and create sub-subcategories).
This is where trouble starts.
When I delete my single.php template, single posts inherit the index.php template. I am happy to leave the single.php file in the template folder, but then how do I get posts to inherit a category template?
It would be nice if WP could present a page based on referring page. For example, if a user clicks on a link at Google, they get the "single.php" template. But if a user comes from my "Genre > Westerns" page, the post uses the Westerns subcategory template.
I know this is confusing and a lot to ask, but I greatly appreciate all the help I've gotten up to this point and I thank you for any further help.