在没有模板的wordpress中创建自定义php文件作为页面

时间:2019-05-26 19:37:51

标签: php wordpress custom-pages

我想创建没有页面模板的自定义PHP文件作为重定向页面,并在此页面中包含WordPress主题的页眉和页脚,但没有页面模板,我想将此页面用作href的重定向页面

例如: 1.php文件 包含

<?php get_header();?>

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>

</body>
</html>

<?php get_footer(); ?>

0 个答案:

没有答案