view content from multiple blogs on same page (3 posts)

  1. jimbo_jr
    Posted 10 years ago #

    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.

  2. kuttnhaste
    Posted 9 years ago #

    This needs to be done. Using RSS isn't quite good enough, since all the data is ready to pull from your own database.

  3. ericr23
    Posted 8 years ago #

    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):

    $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?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.