最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

homepage - What file is the standard frontpage that lists all the posts?

programmeradmin0浏览0评论

I want to edit something in my theme but i can't find the file that lists all the blogposts on the homepage. In the 'Reading' settings i have: Front page displays - your latests posts as the chosen option. When i edit index.php i cannot see the changes so that is not it. So what phpfile does wordpress use to generate 'your latest posts' ?

Thanks in advance!

I want to edit something in my theme but i can't find the file that lists all the blogposts on the homepage. In the 'Reading' settings i have: Front page displays - your latests posts as the chosen option. When i edit index.php i cannot see the changes so that is not it. So what phpfile does wordpress use to generate 'your latest posts' ?

Thanks in advance!

Share Improve this question asked Apr 10, 2011 at 17:17 user1829user1829 2
  • 1 I figured it out...i had the WP Super Cache plugin installed so i couldn't see any changes i was making. So disabling that worked out! – user1829 Commented Apr 10, 2011 at 17:28
  • 1 developer.wordpress/files/2014/10/… this shows the WP structure I hope it helps you out in the future. – Craig Faulmann Commented Aug 27, 2020 at 9:27
Add a comment  | 

1 Answer 1

Reset to default 3

Glad you got it sorted out, but to answer your original question:

1) The front-page.php template file, if it exists, will be used to generate Front Page content, whether the Front Page is set to display the blog posts index or a static Page.

2) The home.php template file, if it exists, will be used to generate the blog posts Index, whether the blog posts index is displayed on the Front Page or on another static Page. (Note: front-page.php has priority over home.php for the Front Page.)

3) If neither of these template files exist, then index.php is used to generate the blog posts index, whether the blog posts index is displayed on the Front Page or on another static Page.

发布评论

评论列表(0)

  1. 暂无评论