I've run into a bit of a wall with a site I'm designing for a client. This was originally a very low budget static site but the client now needs the ability to edit some content from time to time. I've heard that you can just embed a wordpress page into existing HTML site and have followed the steps on the Codex site but can't seem to get it working. Any help is greatly appreciated.
So the wordpress page I'm trying to embed is the following:
And the code I'm using is as follows:
This is posted at the beginning of the php file
<?php /* Short and sweet */ define('WP_USE_THEMES', false); require('cs/wp-blog-header.php'); ?>
And this is within the body of the php file
<?php $posts = get_posts('numberposts=10&order=ASC&orderby=post_title'); foreach ($posts as $post) : setup_postdata( $post ); ?> <?php the_date(); echo "<br />"; ?> <?php the_title(); ?> <?php the_excerpt(); ?> <?php endforeach; ?>
The actual page I'm trying to embed into is the following:
As it sits it's currently displaying I guess some sample post instead of the page mentioned earlier.
Thanks in advance!