Hello all,
I'm fairly new to wordpress (read: I've never used it before) I have designed our company website at mainly using .html and dreamweaver. It is hosted by a company called Data Emporium, who have installed our wordpress blog at abraxasarchitecture.com/news. I designed that page in dreamweaver using the php file type, so it would have the same layout and look as the rest of the page. I then used the code:
<?php
/* Short and sweet */
define('WP_USE_THEMES', false);
require('./wp-blog-header.php');
?>
<?php
require('/the/path/to/your/wp-blog-header.php');
?>
<?php query_posts('showposts=10'); ?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php the_title(); ?>
</a><br />
<?php endwhile;?>
Which was supposed to grab the last 10 posts and then display them in the page I designed. it doesn't though. the page now just displays this error message:
Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/abralune/public_html/News.php on line 4
Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/abralune/public_html/News.php on line 4
Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/abralune/public_html/News.php on line 4
So I get that I need a './wp-blog-header.php' file, but what needs to be included in there? Where do I need to save it/ how does it link to my news page? Is there any way to just edit the code so it doesn't require a header and will just use the layout and header I already designed?
Thanks!