I want to move mypage template files like page-{slug}.php
files to a subdirectory andsub-directory within my theme, in a way that WordPress shouldwill recognize them automatically. If the page templates of the said form doesn't exist within the sub-directory, then WordPress should fall back to the default template loading rules. How couldcan I achieve that? (Unfortunately
Note-1: thisThis did not help me -question and corresponding answers are more generic for page templates and this link mentions template-parts/page
, which does alsois not work)the same thing.
Note-2: I have multiple page-{slug}.php
like page template files, so I want to move them to sub-directory for a more tidy file organization.