Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress如何使用index和home.php_Wordpress_Wordpress Theming - Fatal编程技术网

Wordpress如何使用index和home.php

Wordpress如何使用index和home.php,wordpress,wordpress-theming,Wordpress,Wordpress Theming,我在主题下有index.php和home.php模板 website/theme/mytheme/ -home.php -index.php -header.php -footer.php 当home.php出现时,我的主页将是home.php 1) php实际上是我的主页,其中包括一张大图和我的网站的一些描述 2) php将是普通的博客模板,其中包括博客中的所有帖子、页眉、页脚、边栏 我可以知道如何使索引和主页都可用吗 -在我的主页中,当我点击一个带有url的链接,如“www.website

我在主题下有index.php和home.php模板

website/theme/mytheme/
-home.php
-index.php
-header.php
-footer.php
当home.php出现时,我的主页将是home.php

1) php实际上是我的主页,其中包括一张大图和我的网站的一些描述

2) php将是普通的博客模板,其中包括博客中的所有帖子、页眉、页脚、边栏

我可以知道如何使索引和主页都可用吗


-在我的主页中,当我点击一个带有url的链接,如“www.website.com/blog”,它将提示index.php,显示博客(普通wordpress主页)。

在wordpress中,通常home.php用于blogpage,index.php用于首页。当网站加载时,Nowdays frontpage.php会显示主页


您可以使用设置->阅读和首页将frontpage显示更改为您的index.php,并将页面作为博客页面或在您的案例home.php中发布。php

如果my home.php是blogpage,index.php/front page是我的主页,如何创建链接(主页中的home.php的a href=“”)是否能够使其类似于www.xxx.com/blog for home.php?