Hello, I've been reading about integrating wordpress into a standard HTML website, and need to display the latest 10 posts into a static HTML page.
I read this
And, upon searching the forum on this topic, it seems folks are referring to *wordpress* pages instead of *HTML* pages.
Can someone please help? I'm just not sure what I need from the "loop" codex, nor where I'm to place it :(
Here is the static HTML page so the source code can be viewed.
Here is the page renamed with a PHP extention, which I'm assuming must be done, and the errors my code is displaying: errors
I have this in the header:
<?php
require('/home/username/public_html/wp-blog-header.php');
?>
I have this in the body:
<?php
require('/home/username/public_html/wp-blog-header.php');
?>
<?php
$posts = get_posts('numberposts=10&order=ASC&orderby=post_title');
foreach ($posts as $post) : start_wp(); ?>
<?php the_date(); echo "<br />"; ?>
<?php the_title(); ?>
<?php the_excerpt(); ?>
<?php
endforeach;
?>