Which of the following options is the correct order (by priority in use) to display a single page in template hierarchy?

  • custom template file, page-{slug}.php, page-{id}.php, page.php, singular.php, index.php
  • custom template file, page-{id}.php, page-{slug}.php, page.php, singular.php, index.php
  • singular.php, index.php, page-{id}.php, page-{slug}.php, page.php, custom template file
  • custom template file, page-{slug}.php, page-{id}.php, page.php, singular.php, index.php

Leave a Comment