Thread Starter
Yeowza
(@yeowza)
ok I think I fix it..
what I did was just go some directory’s up relativly
<?php require('./../../../wp-blog-header.php'); >
This just goes 3 directories up, where wp-blog-header.php is located.. gonna keep testing to see if there are any problems.
I’m planning on distributing this theme so I guess it will keep working as long as the user does not move files around
still not sure why <?php define('WP_USE_THEMES', true); require('./wp-blog-header.php'); ?> works with index.php though
Thread Starter
Yeowza
(@yeowza)
I moved wp-blog-header.php into wp-content/themes/ThemeName/ and it works..
So this means that the problem is because ./ is referring to
wp-content/themes/ThemeName
Is there way for me to specify root when I do not know the URL?
ex: http://www.website.com/wp-blog-header.php
Thread Starter
Yeowza
(@yeowza)
ahh i see, wp-blog-header.php is located on root
I guess ./ points to root then, why would it load with index.php and not with articles.php though? the are both in same directory