Support » Fixing WordPress » Pull query_posts from different install directory

  • Resolved buymylife



    I have two separate wordpress blogs installed in two separate directories in the same domain.

    I’m trying to get my sidebar in each blog to display the recent posts from both in two different blocks — have the recent posts from one blog displayed in a block, then the recent posts from the other blog displayed in the next block.

    I’ve been trying everything I can think of to make it call the php from the different directory, but truth be told, I have no idea what I’m doing!

    Any help would be much appreciated! My code from one of the blocks is below:

    <div class="block">
    <h2>Recent Blog Posts</h2>
    <ul class="dates">
    <?php query_posts('showposts=10');	?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <li><a href="<?php the_permalink() ?>"><span class="date"><?php the_time('m.j') ?></span> <?php the_title() ?> </a></li>
    <?php endwhile; endif; ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pull query_posts from different install directory’ is closed to new replies.