Title: Multiple blogs
Last modified: August 18, 2016

---

# Multiple blogs

 *  [mrlarter](https://wordpress.org/support/users/mrlarter/)
 * (@mrlarter)
 * [22 years, 11 months ago](https://wordpress.org/support/topic/multiple-blogs/)
 * I know with b2 in a way you can have multiple blogs via the catagories.
    I was
   wondering if this was possible with WP. basically waht I am wanting is on one
   page one group off catagories to appear and on another page a diffrent group 
   of catagories to appear. any suggestions?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Moderator [Matt Mullenweg](https://wordpress.org/support/users/matt/)
 * (@matt)
 * [22 years, 11 months ago](https://wordpress.org/support/topic/multiple-blogs/#post-25818)
 * It’s not terribly diffilcult to do. Just have to seperate installations of WP,
   give them the same database connection information, and edit one of the blog.
   header.php files to show only one category, such as adding “AND post_category
   = 3” or whatever category you want it to show.
 *  Thread Starter [mrlarter](https://wordpress.org/support/users/mrlarter/)
 * (@mrlarter)
 * [22 years, 11 months ago](https://wordpress.org/support/topic/multiple-blogs/#post-25819)
 * I wouldn’t even new a new installation would I? simply making a second b2.php
   file and naming it diffrent wouldn’ that suffice?
 *  Moderator [Matt Mullenweg](https://wordpress.org/support/users/matt/)
 * (@matt)
 * [22 years, 11 months ago](https://wordpress.org/support/topic/multiple-blogs/#post-25820)
 * If it was in the same directory, that would be just groovy.
 *  Moderator [Matt Mullenweg](https://wordpress.org/support/users/matt/)
 * (@matt)
 * [22 years, 11 months ago](https://wordpress.org/support/topic/multiple-blogs/#post-25821)
 * Actually, then the modification to blog.header.php would mess things up though.
   The common sense thing to do would be add something like `$cat = 1` to the top
   of your template, but because of the way things are set up right now that would
   show you _every_ post in that category in one really long page.
 *  Thread Starter [mrlarter](https://wordpress.org/support/users/mrlarter/)
 * (@mrlarter)
 * [22 years, 11 months ago](https://wordpress.org/support/topic/multiple-blogs/#post-25822)
 * what exactly do i need to add to the header?
    the $cat=1?
 *  Thread Starter [mrlarter](https://wordpress.org/support/users/mrlarter/)
 * (@mrlarter)
 * [22 years, 11 months ago](https://wordpress.org/support/topic/multiple-blogs/#post-25823)
 * the error given when I attempt this catagory selecting is this
    Warning: Invalid
   argument supplied for foreach() in /home/ogham/public_html/wp/b2cat2.php on line
   29 any suggestions to get a way around this?
 *  Moderator [Matt Mullenweg](https://wordpress.org/support/users/matt/)
 * (@matt)
 * [22 years, 11 months ago](https://wordpress.org/support/topic/multiple-blogs/#post-25824)
 * That means you don’t have any posts in that category yet. Post something and 
   that should go away.
 *  Thread Starter [mrlarter](https://wordpress.org/support/users/mrlarter/)
 * (@mrlarter)
 * [22 years, 11 months ago](https://wordpress.org/support/topic/multiple-blogs/#post-25847)
 * what if I wanted to have multiple catagories on one page? something like $cat
   =1,3,4?
 *  [Dougal Campbell](https://wordpress.org/support/users/dougal/)
 * (@dougal)
 * [22 years, 11 months ago](https://wordpress.org/support/topic/multiple-blogs/#post-25863)
 * For multiple cats, use: `$cat='1 3 4';`

Viewing 9 replies - 1 through 9 (of 9 total)

 The topic ‘Multiple blogs’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [Dougal Campbell](https://wordpress.org/support/users/dougal/)
 * Last activity: [22 years, 11 months ago](https://wordpress.org/support/topic/multiple-blogs/#post-25863)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
