• Hey All,

    I’m considering doing a corporate site in WordPress.
    I need to have multiple blogs (for example, an “articles” blog, a “staff” blog, and a “main page” blog), all with their own category structure.

    I need to be able to have content from the other blogs (e.g. “articles” blog) show up in the “main” blog. Obviously I could do this with ad-hoc php code. Is there any better way to do it?

    The projects for making multiple blogs work in WP don’t seem to be very mature…it seems the safest way is multiple instalations, but that would leave my own php code as the only way to get content from one blog to another.

Viewing 2 replies - 1 through 2 (of 2 total)
  • This needs to be done. Using RSS isn’t quite good enough, since all the data is ready to pull from your own database.

    I have the same need for a non-profit site. Right now, there’s a news blog and a resource blog — separate WP databases in subdirectories of the main site. I can easily put the latest entries of either on the site’s index.php page with, e.g. (I’ve never included code in a post here before, so I hope it comes out OK):

    <?php
    include_once('./news/wp-blog-header.php');
    $posts = get_posts('numberposts=4&order=DESC&orderby=post_date');
    foreach ($posts as $post) : start_wp(); ?>
    <b><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></b>
    <br><font "style=font-size:92%;"><?php the_category(', ') ?></font>
    <?php endforeach; ?>

    include_once, include, require_once, and require all work. I had hoped the “once” forms would allow repeating the code for the other blog, but doing so still draws on the first included blog.

    So how can I include a 2nd blog?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘view content from multiple blogs on same page’ is closed to new replies.