Why front-page.php doesn’t show content of file instead shows loop


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 is 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 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.

, Raashid Din 2 years 2020-09-04T00:10:22-05:00 0 Answers 61 views 0

Leave an answer