I’m following the instructions to integrate wordpress on my website. http://codex.wordpress.org/Integrating_Wordpress_with_Your_Website
I am including the following code in www.modomain.com/index1.php . Wordpress is installed in www.mydomain.com/blog
I am using a theme called One so maybe it is why it is not working the file is not correct? What is the reason?
Thank-you
<?php
/* Short and sweet */
define('WP_USE_THEMES', false);
require('www.mydomain.com/blog/wp-blog-header.php');
?>
<?php
require('www.mydomain.com/blog/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;
?>