Code: Select all
require('/xyz/abc/public_html/blog/wp-blog-header.php');
// Get the last 3 posts.
global $post;
$args = array( 'posts_per_page' => 3 );
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post);
echo '<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a><br />';
endforeach;
Is there a way to work around this problem?Fatal error: Cannot redeclare is_email() (previously declared in /xyz/abc/public_html/lib/misc.functions.php:1058) in /xyz/abc/public_html/blog/wp-includes/formatting.php on line 2450
In the bigger picture, does my attempt at integrating WordPress this way have any chance of working?