What i'm trying to achieve is bringing a loop from one WP site into another WP Site.
I used this method to get the loop into an external php file (which all works fine, the results show)
<?php define('WP_USE_THEMES', false); require('path_on_server/wp-blog-header.php'); query_posts('showposts=5'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <li> <a href="<?php the_permalink() ?>"><?php the_title(); ?>" /></a> </li> <?php endwhile; endif; ?>
I then try and include the file in my sidebar using a simple php include call but the results don't show.... I imagine this is because of some sort of confliction between my WP & the other sites WP.
Any help on achieving this?