Tracing the template file used by WordPress might be tricky at times.
The code below print the full path and name of the template file used by the viewed page.
If you get a top file, i.e. index.php, then check that file for calling theme parts.
1 2 3 4 5 6 7 8 9 10 |
// show template file used at the end of the footer function which_template_is_loaded() { if ( is_super_admin() ) { global $template; print_r( $template ); } } add_action( 'wp_footer', 'which_template_is_loaded' ); ?> |