• 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)
  • You could set them up as categories instead of different blogs. That would work just fine.

    Thread Starter sitegoddess

    (@sitegoddess)

    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?

    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.

    Thank you, Doodlebee! This will help me also.

    Judith

    Thread Starter sitegoddess

    (@sitegoddess)

    beautiful..i’ll try it.
    Big thanks from me too!!

    Thread Starter sitegoddess

    (@sitegoddess)

    oops! Got this:

    Parse error: syntax error, unexpected T_STRING

    any ideas?

    The code listed above didn’t have the closing php tag: ?>

    Thread Starter sitegoddess

    (@sitegoddess)

    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’);
    } ?>

    you’re missing the closing } tag.

    put another one there, after the last one.

    It’s a parenthisis problem. Try changing the last bit of code to: wp_list_categories(‘exclued=4’); }} ?>

    Thread Starter sitegoddess

    (@sitegoddess)

    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?

    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

    (@sitegoddess)

    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.