私はWordpressを初めて使用しています。Wordpress関数がページのレンダリングを停止します
<a href="<?php echo site_url(); ?>/wp-content/themes/woffice-child-theme/page-templates/loginF.php"><img src="./wp-content/themes/woffice-child-theme/page-templates/images/signin-btn.png"></a>
loginF.phpない負荷が、ページに、私はHOME_URLのような任意のワードプレスの関数を呼び出すどこから()またはwp_login_form(:私は次のリンクをwordpressのページから別のページに移動してい
)ページがレンダリングを停止します。たとえば、ページの先頭にhome_url()を置くと、ブラウザに空のページが表示されます。なぜこうなった?私は何とかWordPressのコンテキストの外出ですか?何をすべきか?
<html>
<?php
$redirect_url = home_url();
?>
<head>
<title>Title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="/wp-content/themes/woffice-child-theme/page-templates/style2.css">
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,300' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="frontpage-content">
<div class="front-wrap">
<br/>
<div class="new-login-logo text-center"><img src="/wp-content/themes/woffice-child-theme/page-templates/images/new-login-logo.png"></div>
<br/><br/>
<div class="frontpage-fields">
<input type="text" name="log" id="user" class="input" placeholder="Email Address">
<input type="password" name="pwd" id="pass" class="input" placeholder="Password">
</div>
<div class="forgot-password-new"><a href="#">Forgot your password?</a></div>
<br/>
<div class="text-center"><a href="#"><img src="./images/captcha-image.png"></a></div>
<br/>
<div class="text-center new-login-space"><a href="#"><img src="/wp-content/themes/woffice-child-theme/page-templates/images/new-login-btn.png"></a></div>
</div>
</div>
</body>
</html>
追加されましたが、状況は同じです。 – user3151013