WordPress – Why does the get_template_directory_uri() function work on some files and not others?
I am converting a static page to wordpress and in my index.php I use: <?= get_template_directory_uri() ?> to create links, example: <a href="<?= get_template_directory_uri() ?>/pages/login.php" class="btn btn-success btn-lg">Login</a> and that works. But I have a <a href="<?= get_template_directory_uri() ?>/pages/login.php" class="btn…