[resolved] How to search multiple blogs in one installation, and have one home page (3 posts)

  1. design_dolphin
    Posted 6 years ago #


    I have multiple sub-blogs in WP 3.0 on the same domain. In this installation I wanted visitors to be able to search the content of all sub-blogs from one search form, as well as have a front page where the posts from the different sub-blogs are shown.

    Plugin Used

    WordPress MU Sitewide Tags Pages

    Steps followed

    1. In 'Super Admin' -> 'Options' enable 'Tags Blog'.
    2. In 'Super Admin' -> 'Options' at 'Tags Blog' set the 'Blogname' to: home
    3. In 'Super Admin' -> 'Sites' write down the link for the 'home' blog
    4. In your navigation change the home URL to the link in 3. For example:

    Main Menu

    5. In your search form(s) change the form method action to the home URL in 3. For example:

    <form method="get" class="searchform clearfix" action="http://www.yourdomain.com/home/">
     <input type="text" value="<?php if ('' == get_search_query()) { _e('Search...', 'arras'); } else { the_search_query(); } ?>" name="s" class="s" onfocus="this.value=''" />
     <input type="submit" class="searchsubmit" value="<?php _e('Search', 'arras') ?>" title="<?php printf( __('Search %s', 'arras'), wp_specialchars( get_bloginfo('name'), 1 ) ) ?>" />

    6. Repeat steps 4. and 5. for all sub-blogs (that have different themes) that you want to refer to the home blog.

    You should now have a common home page where all the articles of your sub-blogs will be shown. As well as all search queries will run through the main blog, regardless of which sub-blog you're on.

    Left to solve

    So far I have only gotten newly added posts to show in the 'home' blog. Does anyone know how to add the older posts?


    Search across multiple blogs 1
    Search across multiple blogs 2

  2. design_dolphin
    Posted 6 years ago #

    Left to solve

    So far I have only gotten newly added posts to show in the 'home' blog. Does anyone know how to add the older posts?

    O.k. YMMV and backup your database before you do this. But the following works for me:

    1. In the subsite blog in the 'Posts' admin backend set in 'screen options' the option 'Show on screen' to 60 for example and press the 'Apply' button next to it*.

    * Note the number of posts you can comfortable max show on one page will depend on your set-up.

    2. Now select the 'title' check box in the posts admin screen. It is located directly above your listing of posts. This selects all the posts on the page.
    3. In the 'bulk actions' jump menu in the posts admin screen select 'edit' and press the 'Apply' button next to it.
    4. Now at the top of your post lists there will a box. Don't change anything, and press 'Update' at the bottom right of this box.

    If the WordPress MU Sitewide Tags Pages plugin is setup correctly all selected posts will now be updated to and shown in the 'home' blog you created.

    All new posts created or updates of existing posts will automatically be passed through to the 'home' blog by the plugin.

    If anyone wants to make a videotutorial by all means feel free.

  3. aparentdesign
    Posted 5 years ago #

    This sounds almost like something I'm trying to do. I want the search from home to search all subblogs, I don't see where this is doing that?

Topic Closed

This topic has been closed to new replies.

About this Topic