Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Talk:Function Reference/get template part

The list of files in template priority appears to be wrong to me - Can anyone else double check before I edit it? From the way I read the `locate_template()` function, it appears that the correct order would be:

  1. wp-content/themes/twentytenchild/loop-index.php
  2. wp-content/themes/twentyten/loop-index.php
  3. wp-content/themes/twentytenchild/loop.php
  4. wp-content/themes/twentyten/loop.php

Goldenapples 20:59, 30 May 2012 (UTC)