<?php
// Include WordPress
define('WP_USE_THEMES', false);
//exact path for wp-load.php.
// This file is kept in the root of wordpress install
require('blog/wp-load.php');
//Query wordpress for latest 3 posts
query_posts('showposts=3');
?>

<?php while (have_posts ()): the_post(); ?>
    <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></
h2>
<?php the_excerpt(); ?>

<?php endwhile; ?>

================================

This doesn't work either.  Another site said you can't simply plug WP
code into CakePHP files.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to