require(‘./wp-blog-header.php’);
-
Hello I’m designing a theme but having some trouble..
I have an index.php and I include this line at very start
<?php define('WP_USE_THEMES', true); require('./wp-blog-header.php'); ?>
The WP_USE_THEMES is self explanatory and the wp-blog-header I guess is
to start up wordpress.Anyways I put a link on the page which points to articles.php and I include this line inside articles.php but I get this error.
Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in C:\xampp\htdocs\wp-content\themes\Tutorial\articles.php on line 1 Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\wp-content\themes\Tutorial\articles.php on line 1
I’m not sure why it works in index.php and not in articles.php, it looks like it cannot find ./wp-blog-header.php (im not sure where that is btw, but index.php seems to find it okay)
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘require(‘./wp-blog-header.php’);’ is closed to new replies.