AFlyingLemon
Member
Posted 6 months ago #
Hi,
I am trying to integrate WordPress into my site, but I am having some issues. I try to have my index.php file point to my wordpress header by using this:
<?php
require('./path-to-your-blog/wp-blog-header.php');
?>
but when I try to then view the page, I get the following error:
Warning: require(./wordpress/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/reads/public_html/wordpress/wp-content/themes/reads/index.php on line 2
Any suggestions?
sangram.patra
Member
Posted 6 months ago #
I think i will help for your requirement somewhat.
Where your index.php file is ,then there put your wordpress folder and rename it as you want like blog.and then go to browser and run yoursite.com/blog and then setup wordpress installation and finally put a link like blog in your main site and give path like yoursite.com/blog.
Thanks.
sANGRAM.
AFlyingLemon
Member
Posted 6 months ago #
I have done this, but I am basically trying to turn my site into a wordpress site, which requires me to turn my site into a wordpress theme. I have followed a few guides on how to do this but I end up with the error which I have mentioned above.
Any further help would be much appreciated
try temporarily switching themes and see if it works
also, post exact code snippet you are using
AFlyingLemon
Member
Posted 6 months ago #
It works with the default wordpress theme. I have created a new folder in the the themes folder and placed mt index.php and style.css in this. The I add the code
<?php
require('./wordpress/wp-blog-header.php');
?>
to the very top of the index.php file as I was instructed by the guidelines I was following. But when I activate this theme I get a blank page with the error I have mentioned above
well that's correct
what does the theme's index.php have in it?
AFlyingLemon
Member
Posted 6 months ago #
Hi,
My index.php file is here http://pastebin.com/Ab80fKHV
AFlyingLemon
Member
Posted 6 months ago #
Could anyone help me out here? I really don't know where to go from here