我遇到了 PHP 打开标签的问题。开始标签显示在文件的开头。这是源代码的截图
这是我使用的代码。我通过插件注册了模板。我按照本教程添加了带有插件的模板。
<?php
/*
* Template Name: Customer
*/
if ( ! is_user_logged_in() ) {
wp_redirect( homer_url());
exit();
}
?>
<!DOCTYPE html>
<html class="ud-for-edd-template">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php wp_head() ?>
</head>
我不确定为什么会这样。为什么开始标签显示在前端?
提前致谢。