Title: Multiple Blogs, Same Login
Last modified: August 18, 2016

---

# Multiple Blogs, Same Login

 *  [sitegoddess](https://wordpress.org/support/users/sitegoddess/)
 * (@sitegoddess)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/multiple-blogs-same-login/)
 * Desperate for some help with this. I am a newbie, but can do html/css.
 * My site uses a static blog page as a homepage, but then I need three separate
   blogs on very different subjects. I would like users to be able to login to comment
   only once though–so the same user login across all three blogs. I would like 
   the folders to be something like:
 * domain.com/blog
    domain.com/recipes domain.com/stories
 * Thanks in advance!

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

 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/multiple-blogs-same-login/#post-622052)
 * You could set them up as categories instead of different blogs. That would work
   just fine.
 *  Thread Starter [sitegoddess](https://wordpress.org/support/users/sitegoddess/)
 * (@sitegoddess)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/multiple-blogs-same-login/#post-622202)
 * Thank you! Would the sidebar for each of the blogs in a certain category only
   show the blog titles of that particular category in the sidebar? If so, how would
   I do that?
 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/multiple-blogs-same-login/#post-622203)
 * Oh, you could probably get it to do that. If you put something like this in the
   sidebar.php file:
 *     ```
       <?php
       if (is_category('1')) {
        wp_list_categories('exclude=2,3');
       } else {
       if (is_category('2)) {
        wp_list_categories('exclude=1,3');
       }
       ```
   
 * get the idea?
 * Then, if you’re on category 1, categories 2 and 3 won’t be listed. Something 
   like that should work just fine.
 *  [trabar](https://wordpress.org/support/users/trabar/)
 * (@trabar)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/multiple-blogs-same-login/#post-622204)
 * Thank you, Doodlebee! This will help me also.
 * Judith
 *  Thread Starter [sitegoddess](https://wordpress.org/support/users/sitegoddess/)
 * (@sitegoddess)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/multiple-blogs-same-login/#post-622205)
 * beautiful..i’ll try it.
    Big thanks from me too!!
 *  Thread Starter [sitegoddess](https://wordpress.org/support/users/sitegoddess/)
 * (@sitegoddess)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/multiple-blogs-same-login/#post-622207)
 * oops! Got this:
 * Parse error: syntax error, unexpected T_STRING
 * any ideas?
 *  [Geezerjim](https://wordpress.org/support/users/actorjiml/)
 * (@actorjiml)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/multiple-blogs-same-login/#post-622208)
 * The code listed above didn’t have the closing php tag: ?>
 *  Thread Starter [sitegoddess](https://wordpress.org/support/users/sitegoddess/)
 * (@sitegoddess)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/multiple-blogs-same-login/#post-622209)
 * thanks jim. good call! but i’m still getting the error. i wrote:
 * <?php
    if (is_category(‘4’)) { wp_list_categories(‘exclude=7’); } else { if (
   is_category(‘7)) { wp_list_categories(‘exclude=4’); } ?>
 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/multiple-blogs-same-login/#post-622210)
 * you’re missing the closing } tag.
 * put another one there, after the last one.
 *  [Geezerjim](https://wordpress.org/support/users/actorjiml/)
 * (@actorjiml)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/multiple-blogs-same-login/#post-622211)
 * It’s a parenthisis problem. Try changing the last bit of code to: wp_list_categories(‘
   exclued=4’); }} ?>
 *  Thread Starter [sitegoddess](https://wordpress.org/support/users/sitegoddess/)
 * (@sitegoddess)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/multiple-blogs-same-login/#post-622212)
 * nope!
 * sidebar.php:
 * <!– begin sidebar –>
 * <div id=”sidebar”>
 * <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(1) ) : else :?
   >
 * <h2>Categories</h2>
    -  <?php
       if (is_category(‘4’)) { wp_list_categories(‘exclude=7’); } else { 
      if (is_category(‘7)) { wp_list_categories(‘exclude=4’);}}?>
 * </div>
 * <!– end sidebar –>
 * error:
    Parse error: syntax error, unexpected T_STRING. . . on line 14
 * any other ideas?
 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/multiple-blogs-same-login/#post-622213)
 * You haven’t closed your “else” statement, here:
 * `<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else:?
   >`
 * before the closing `</div>` you need to end your statement. The code we provided
   isn’t the problem. You need `<?php endif; ?>` before your closing div tag.
 *  Thread Starter [sitegoddess](https://wordpress.org/support/users/sitegoddess/)
 * (@sitegoddess)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/multiple-blogs-same-login/#post-622218)
 * I added it, but no go. There must be something throwing it off. I’ll have someone
   take a look at the whole blog.
    (((Thank you!!!)))

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

The topic ‘Multiple Blogs, Same Login’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 13 replies
 * 4 participants
 * Last reply from: [sitegoddess](https://wordpress.org/support/users/sitegoddess/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/multiple-blogs-same-login/#post-622218)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
