You could set them up as categories instead of different blogs. That would work just fine.
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
beautiful..i’ll try it.
Big thanks from me too!!
oops! Got this:
Parse error: syntax error, unexpected T_STRING
any ideas?
The code listed above didn’t have the closing php tag: ?>
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’); }} ?>
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.
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!!!)))