index.php in Themes and Core
-
Could someone explain all the different index.php files that exist in an installation of WP? I am working in Dreamweaver with WAMP. In the www folder in my site folder, the first file after the last folder (wp_includes) is the core index.php file. There is also an index.php file when you spin open the wp_content folder, right under the Themes folder(but not in it). Then when you open the themes folder there is another index.php file below the last theme folder. And of course, each theme has one. There’s also one in the Plugins folder. My site works perfectly in DW using localhost if I use the Core index.php file. If I open any other index.php file in code view in DW it says “<?php
// Silence is golden.”
Any index.php files in Theme folders contain code but output an error message Fatal error: Call to undefined function get_header() in C:\wamp\www\mysite\wp-content\themes\twentythirteen\index.php on line 17So please explain the need or purpose for these files. Thank you in advance.
- The topic ‘index.php in Themes and Core’ is closed to new replies.