Support » Themes and Templates » Direct link to a PHP file

Viewing 2 replies - 1 through 2 (of 2 total)
  • Did you find a solution to this? I’m looking to do the same thing.

    try <?php bloginfo(‘template_url’); ?>/mypage.php that will link that mypage.php file to the root of your themes directory, so when you pack it all up in a .zip, it’ll look at the root for that file.

    Alternatively you can use

    <?php bloginfo(‘template_url’); ?>/files/mypage.php to start organizing your files in seperate folders, like in this example linking to your ‘mypage.php’ file within your template’s folder with a subdirectory called “files”.

    Hope this helps, GL!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Direct link to a PHP file’ is closed to new replies.