Custom php page in WordPress theme?

Move the template files out of the subdirectory, and put them in the Theme’s root directory. Then, if you simply want to include the contents of those template files in other template files, simply call get_template_part( 'test-page-name.php' );.

If you insist on keeping these files in a subdirectory, you’ll need to include them via locate_template().

error code: 523