title: WordPress: how can i create a custom .php page that have another .php file link in it?
body: <p>im trying to create a custom page in WordPress i did some research and what you need to do is to create a .php file in the theme folder that include this code:</p>
  
  <pre><code>&lt;?php /* Template Name: login */ ?&gt;
  </code></pre>
  
  <p>this one php file that you include this cod in work great but in my case it's a registration form and it does have a link to another .php file which is register.php and when i try to go for that link it will say :"This page doesn't seem to exist" even though both .php files are in the same directory and i even tried to include full path in the link didn't work my full login.php file is like this:</p>
  
  <pre><code>&lt;?php include('server.php') /* Template name: login*/ ?&gt;
  
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;login&lt;/title&gt;
      &lt;link rel="stylesheet" type="text/css" href="style.css"&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class="header"&gt;
          &lt;h2&gt;Login&lt;/h2&gt;
      &lt;/div&gt;
  
      &lt;form method="post" action="login.php"&gt;
  
          &lt;?php include('errors.php'); ?&gt;
  
          &lt;div class="input-group"&gt;
              &lt;label&gt;Username&lt;/label&gt;
              &lt;input type="text" name="username" &gt;
          &lt;/div&gt;
          &lt;div class="input-group"&gt;
              &lt;label&gt;Password&lt;/label&gt;
              &lt;input type="password" name="password"&gt;
          &lt;/div&gt;
          &lt;div class="input-group"&gt;
              &lt;button type="submit" class="btn" name="login_user"&gt;Login&lt;/button&gt;
          &lt;/div&gt;
          &lt;p&gt;
              Not yet a member? &lt;a href="register.php"&gt;Sign up&lt;/a&gt;&lt;!-- problem is here --&gt;
          &lt;/p&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>when i click on register it take me to :<a href="http://localhost/wordpress/login/register.php" rel="nofollow noreferrer">http://localhost/wordpress/login/register.php</a> (login title of the page) and say it doesnt exist 
  instead of opening the register.php file in the same directory </p>