admin管理员组

文章数量:1323335

Firstly, I understand the template hierarchy a little bit and read all the answers given by experts but unfortunately didn't get that.

Here is the problem I face:

  1. If I use home.php then the content of the file is used on the home-page but when I set the static page for blog posts then the content of home.php is showed on the page. (I know the template hierarchy).
  2. If I use front-page.php then the content of index.php is used on the homepage and not the file content.

Now I am confused why the home.php works on the home page and front-page.php isn't shown.

Any idea why this isn't working.

本文标签: theme developmentWhy frontpagephp doesn39t show content of file instead shows loop