• Is there an easy way to see which PHP files a page uses? I’m trying to troubleshoot an issue, and there’s some stray code, but I’m not sure which template it’s getting pulled from. I think it may be from one of the plug-ins that I’m using, but it’s a little tough to tell, since all I’m looking at is source code.

    I’ve already marked my template files with comments at the beginning/end, but that’s not enough. It’s still somewhere else. Any suggestions?

Viewing 6 replies - 1 through 6 (of 6 total)
  • can you tell what is your issue? basically you have header.php, footer.php, page.php, index.php, archive.php, comment.php, sidebar.php.,
    index.php is a combination of header,footer,sidebar…

    Thread Starter tshirtfiend

    (@tshirtfiend)

    Yeah, I have an extra <div> in there, and I’m not sure where it’s coming into the mix. It’s just a clearer div.

    Somehow, it’s getting inserted between the last post and the sidebar.

    jamesalton

    (@brettalton)

    I’d like to know this too.

    I have my Posts page pointing to a static page, but no matter what PHP file I edit (including posts.php), the static content that I’m editing doesn’t change.

    Samuel B

    (@samboll)

    theme’s single.php show single post views
    theme’s page.php shows page views
    theme’s index.php usually controls home page

    Michael

    (@alchymyth)

    if you have the time and patience, you could add the file name as html comment at the beginning of every php file of your theme – and then look at the html code in your browser of with firebug.

    Thread Starter tshirtfiend

    (@tshirtfiend)

    The problem for me is that I’m using a plugin (Shopp) that has it’s own pages and templates. Some of these are part of the plug-in core, others are editable. So it’s not clear to figure out what’s loading.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show which PHP files page uses’ is closed to new replies.